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) IsDevelopment() bool
- func (s *Server) IsProduction() bool
- func (s *Server) IsTest() bool
- 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(*config)
Option for queue system
func WithServiceName ¶
WithServiceName set serviceName function
type Server ¶
type Server struct {
Options *config
}
func (*Server) IsDevelopment ¶
func (*Server) IsProduction ¶
func (*Server) SetRunMode ¶
func (*Server) StopNotify ¶
Click to show internal directories.
Click to hide internal directories.