Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GRPCOptions *genericoptions.GRPCOptions HTTPOptions *genericoptions.HTTPOptions TLSOptions *genericoptions.TLSOptions MySQLOptions *genericoptions.MySQLOptions RedisOptions *genericoptions.RedisOptions KafkaOptions *genericoptions.KafkaOptions Address string Accounts map[string]string JwtSecret string }
Config represents the configuration of the service.
type GRPCServer ¶
type GRPCServer struct {
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer( grpcOptions *genericoptions.GRPCOptions, tlsOptions *genericoptions.TLSOptions, srv pb.UserCenterServer, ) (*GRPCServer, error)
func (*GRPCServer) GracefulStop ¶
func (s *GRPCServer) GracefulStop()
func (*GRPCServer) RunOrDie ¶
func (s *GRPCServer) RunOrDie()
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer( httpOptions *genericoptions.HTTPOptions, tlsOptions *genericoptions.TLSOptions, g *gin.Engine, ) (*HTTPServer, error)
func (*HTTPServer) GracefulStop ¶
func (s *HTTPServer) GracefulStop()
func (*HTTPServer) RunOrDie ¶
func (s *HTTPServer) RunOrDie()
Click to show internal directories.
Click to hide internal directories.