server

package
v0.0.0-...-92ef796 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnRegistry

func ConnRegistry(config *config.ServerConfig) (*zookeeper.ZkClient, error)

func SetupLogger

func SetupLogger(config *config.ServerConfig) *logrus.Logger

Types

type Server

type Server struct {
	Config *config.ServerConfig

	ServiceType service.ServiceType
	Service     service.Service
	ZkClient    *zookeeper.ZkClient
}

func NewServer

func NewServer(config *config.ServerConfig, st string) *Server

func (*Server) Serve

func (s *Server) Serve()

Jump to

Keyboard shortcuts

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