Documentation ¶
Index ¶
- Variables
- func NewDiscovery(conf *conf.Registry) registry.Discovery
- func NewGRPCServer(c *conf.Server, user *service.UserService, logger log.Logger) *grpc.Server
- func NewHTTPServer(c *conf.Server, t *conf.JWT, user *service.UserService, logger log.Logger) *http.Server
- func NewRegistrar(conf *conf.Registry) registry.Registrar
- func NewRelationClient(r registry.Discovery, logger log.Logger) relationv1.RelationServiceClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewHTTPServer, NewRelationClient, NewDiscovery, NewRegistrar)
ProviderSet is server providers.
Functions ¶
func NewGRPCServer ¶
NewGRPCServer new a user service gRPC server.
func NewHTTPServer ¶
func NewHTTPServer(c *conf.Server, t *conf.JWT, user *service.UserService, logger log.Logger) *http.Server
NewHTTPServer new a user service HTTP server.
func NewRelationClient ¶
func NewRelationClient(r registry.Discovery, logger log.Logger) relationv1.RelationServiceClient
NewRelationClient 创建一个Relation服务客户端,接收Relation服务数据
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.