server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 12 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 {
	ConfigPath string

	Config config.IConfig
	Router *router.Router
	// contains filtered or unexported fields
}

func (*Server) InitConfig

func (s *Server) InitConfig(confPath string)

初始化配置文件

func (*Server) InitDb

func (s *Server) InitDb()

初始化db

func (*Server) InitLogger

func (s *Server) InitLogger()

初始化日志

func (*Server) InitMemcached

func (s *Server) InitMemcached()

初始化memcache

func (*Server) InitRedis

func (s *Server) InitRedis()

初始化redis

func (*Server) InitRouter

func (s *Server) InitRouter()

初始化路由

func (*Server) InitServer

func (s *Server) InitServer()

func (*Server) Run

func (s *Server) Run()

func (*Server) SetAddress

func (s *Server) SetAddress(addr string)

func (*Server) SetTimeout

func (s *Server) SetTimeout(timeout int)

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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