Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultServer ¶
type DefaultServer struct {
// contains filtered or unexported fields
}
func (*DefaultServer) GetName ¶
func (s *DefaultServer) GetName() string
func (*DefaultServer) Init ¶
func (s *DefaultServer) Init(cfg DefaultServerConfig)
func (*DefaultServer) RegisterService ¶
func (s *DefaultServer) RegisterService(sd *grpc.ServiceDesc, ss any)
type DefaultServerConfig ¶
type DefaultServerConfig struct { StartTimeout secs.Seconds `validate:"seconds"` StopTimeout secs.Seconds `validate:"seconds"` Host string `validate:"required,min=1"` ServiceId int `validate:"required,min=10,max=99"` MaxConnectionIdle secs.Seconds `validate:"seconds"` Timeout secs.Seconds `validate:"seconds"` MaxConnectionAge secs.Seconds `validate:"seconds"` Time secs.Seconds `validate:"seconds"` }
Click to show internal directories.
Click to hide internal directories.