http

package
v0.0.0-...-a3f153f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

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

func NewController(sc *spotify.Client, whc webhook.Client, publicKey []byte) Controller

Create a new controller providing: a spotify client, a webhook client, and the discord application's public key.

func (Controller) Index

Handle incoming interactions. Each interaction is verified with the provided public key via the ED25519 package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL