httpapi

package
v0.0.0-...-fb57e2f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoTestAPIArgs

type EchoTestAPIArgs struct {
	MsgSignature string
	Timestamp    int64
	Nonce        string
	EchoStr      string
}

type EnvelopeHandler

type EnvelopeHandler interface {
	OnIncomingEnvelope(rx envelope.Envelope) error
}

type LowlevelHandler

type LowlevelHandler struct {
	// contains filtered or unexported fields
}

func NewLowlevelHandler

func NewLowlevelHandler(
	token string,
	encodingAESKey string,
	eh EnvelopeHandler,
) (*LowlevelHandler, error)

func (*LowlevelHandler) ServeHTTP

func (h *LowlevelHandler) ServeHTTP(
	rw http.ResponseWriter,
	r *http.Request,
)

type ToEchoTestAPIArgs

type ToEchoTestAPIArgs interface {
	ToEchoTestAPIArgs() (EchoTestAPIArgs, error)
}

type URLValuesForEchoTestAPI

type URLValuesForEchoTestAPI url.Values

func (URLValuesForEchoTestAPI) ToEchoTestAPIArgs

func (x URLValuesForEchoTestAPI) ToEchoTestAPIArgs() (EchoTestAPIArgs, error)

Jump to

Keyboard shortcuts

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