Documentation
¶
Index ¶
- type Option
- type Server
- func (s *Server) AddDiscovery(client discovery.Discovery) *Server
- func (s *Server) AddTrace(tracer *tracer.Server) *Server
- func (s *Server) HostInfo() *host.InfoStat
- func (s *Server) IsDevelopment() bool
- func (s *Server) IsProduction() bool
- func (s *Server) IsTest() bool
- func (s *Server) PrintHostInfo()
- func (s *Server) Run()
- func (s *Server) SetRunMode(mode string)
- func (s *Server) Shutdown()
- func (s *Server) StopNotify(sig os.Signal)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Server)
Option for queue system
func WithServiceName ¶
WithServiceName set serviceName function
type Server ¶
type Server struct { Ctx context.Context Tracer *tracer.Server Logger glog.ILoggerEntry ServiceName string Host string Port int Version string CMux cmux.CMux // contains filtered or unexported fields }
func (*Server) IsDevelopment ¶
func (*Server) IsProduction ¶
func (*Server) PrintHostInfo ¶ added in v0.4.6
func (s *Server) PrintHostInfo()
func (*Server) SetRunMode ¶
func (*Server) StopNotify ¶
Click to show internal directories.
Click to hide internal directories.