server

package
v0.0.0-...-3d06b5a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestHandler

type RequestHandler struct {
	Bot *bot.Bot
}

func (*RequestHandler) ServeHTTP

func (h *RequestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Server

type Server struct {
	http.Server
	Logger *logger.Entry
}

func NewServer

func NewServer(addr string) *Server

func (*Server) RegisterHandleFunc

func (s *Server) RegisterHandleFunc(pattern string, handler http.Handler)

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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