httplistener

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	PublicKey ed25519.PublicKey
	Handler   goslash.InteractionHandler
}

TODO test http handler

func NewHttpListener

func NewHttpListener(publicKey string) *Listener

func (*Listener) InteractionEndpoint

func (listener *Listener) InteractionEndpoint(w http.ResponseWriter, r *http.Request)

func (*Listener) ListenAndServe

func (listener *Listener) ListenAndServe(addr, path string)

func (*Listener) SetHandler

func (listener *Listener) SetHandler(handler goslash.InteractionHandler)

Jump to

Keyboard shortcuts

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