server

package
v0.0.0-...-90656f1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenAuth *jwtauth.JWTAuth

Functions

func Address

func Address(host, port string) func(*Server)

func Logger

func Logger(zl *logger.Logger) func(*Server)

func Routes

func Routes() func(*Server)

func SetAuth

func SetAuth(secret string) func(*Server)

Types

type Server

type Server struct {
	Logger *logger.Logger
	// contains filtered or unexported fields
}

func NewServer

func NewServer(options ...func(*Server)) *Server

func (*Server) Shutdown

func (a *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (a *Server) Start() error

Directories

Path Synopsis
handler

Jump to

Keyboard shortcuts

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