Back to godoc.org

Package http

v0.1.0-rc1
Latest Go to latest

The latest major version is .

Published: Jul 14, 2020 | License: Apache-2.0 | Module: github.com/seashell/drago

Index

type Handler

type Handler interface {
	RegisterRoutes(e *echo.Echo)
}

Handler :

type Server

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

HTTPServer :

func NewHTTPServer

func NewHTTPServer(c *ServerConfig) (*Server, error)

NewHTTPServer :

func (*Server) RegisterHandler

func (s *Server) RegisterHandler(handler Handler)

RegisterHandler :

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown :

func (*Server) Start

func (s *Server) Start()

Start :

type ServerConfig

type ServerConfig struct {
	BindAddress string `mapstructure:"bind_address"`
}

ServerConfig :

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier