server

package
v0.0.0-...-72f410e Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 15 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 {
	ServiceName             string
	Account                 map[string]string
	Port                    int
	TlsEnable               bool
	TlsCertFile, TlsKeyFile string
	ReadTimeout             time.Duration
	WriteTimeout            time.Duration
	Debug                   bool
	ZipkinUrl               string
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) InitRouter

func (server *Server) InitRouter() *gin.Engine

@BasePath /api/v1

func (*Server) StartServer

func (s *Server) StartServer() (<-chan struct{}, <-chan error)

Directories

Path Synopsis
handler

Jump to

Keyboard shortcuts

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