web

package
v0.0.0-...-9135dd4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Zlib Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const BitchanPubKeyContentType = "application/x-bitchan-identity"

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddleWare

type MiddleWare struct {
	Api *api.ApiServer

	DB db.Facade
	// contains filtered or unexported fields
}

func New

func New(host string, port string) *MiddleWare

func (*MiddleWare) AddPeerList

func (m *MiddleWare) AddPeerList(l model.PeerList)

func (*MiddleWare) EnsureKeyFile

func (m *MiddleWare) EnsureKeyFile(fname string) error

func (*MiddleWare) ServeHTTP

func (m *MiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*MiddleWare) SetupRoutes

func (m *MiddleWare) SetupRoutes()

func (*MiddleWare) Stop

func (m *MiddleWare) Stop()

Jump to

Keyboard shortcuts

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