server

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 28 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

	ServiceHostPrefix string
	Version           string // will be in status
}

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) (server *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