server

package
v0.0.0-...-4eddeae Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Router *way.Router

	Conf conf.Config
	// contains filtered or unexported fields
}

Server is the main struct for isso. it keep the all shared dependencies.

func NewServer

func NewServer(config conf.Config, inDebugMode bool) (*Server, error)

NewServer make a new Server

func (*Server) Close

func (s *Server) Close()

Close clear all res used by server.

func (*Server) LoggingHandler

func (s *Server) LoggingHandler(h http.Handler) http.Handler

LoggingHandler return a http.Handler that wraps h and logs requests

func (*Server) Run

func (s *Server) Run() error

Run the Server

Jump to

Keyboard shortcuts

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