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()
Click to show internal directories.
Click to hide internal directories.