server

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Routes  *model.Routes
	Config  *model.Config
	Auth    *authProto.AuthClient
	Metrics *model.Metrics
}

Options keeps params for gateway server runtime

type Server

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

Server keeps HTTP sever and it configs

func New

func New(opt *Options) (serve *Server, err error)

New return configurated server with all handlers

func (*Server) Start

func (s *Server) Start() error

Start return http or https ListenServer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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