Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Match spotify ID strings ID_MATCH = `([a-zA-Z0-9]+)` // Timestamp header name HEADER_TS = "X-Signature-Timestamp" // Signature header name HEADER_SIG = "X-Signature-Ed25519" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
Create a new controller providing: a spotify client, a webhook client, and the discord application's public key.
func (Controller) Index ¶
func (c Controller) Index(w http.ResponseWriter, r *http.Request) error
Handle incoming interactions. Each interaction is verified with the provided public key via the ED25519 package.
Click to show internal directories.
Click to hide internal directories.