Documentation ¶
Index ¶
- Variables
- func NewClient(context context.Context, host string, logger *zap.Logger, ...) (*grpc.ClientConn, error)
- func NewServer(lc fx.Lifecycle, s fx.Shutdowner, cfg *config.Config, logger *zap.Logger, ...) *grpc.Server
- func StreamDialOption(logger *zap.Logger, interceptors ...grpc.StreamClientInterceptor) grpc.DialOption
- func StreamServerOption(logger *zap.Logger, interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption
- func UnaryDialOption(logger *zap.Logger, interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption
- func UnaryServerOption(logger *zap.Logger, interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ServerModule for fx. ServerModule = fx.Provide(NewServer) // Module for fx. Module = fx.Options(ServerModule) )
Functions ¶
func NewClient ¶
func NewClient(context context.Context, host string, logger *zap.Logger, opts ...grpc.DialOption) (*grpc.ClientConn, error)
NewClient to host for gRPC.
func NewServer ¶
func NewServer(lc fx.Lifecycle, s fx.Shutdowner, cfg *config.Config, logger *zap.Logger, opts ...grpc.ServerOption) *grpc.Server
NewServer for gRPC.
func StreamDialOption ¶ added in v1.4.0
func StreamDialOption(logger *zap.Logger, interceptors ...grpc.StreamClientInterceptor) grpc.DialOption
StreamDialOption for gRPC.
func StreamServerOption ¶ added in v1.4.0
func StreamServerOption(logger *zap.Logger, interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption
StreamServerOption for gRPC.
func UnaryDialOption ¶ added in v1.4.0
func UnaryDialOption(logger *zap.Logger, interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption
UnaryDialOption for gRPC.
func UnaryServerOption ¶ added in v1.4.0
func UnaryServerOption(logger *zap.Logger, interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption
UnaryServerOption for gRPC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.