Documentation ¶
Overview ¶
Package server is a package that holds the http or grpc service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(addr string, opts ...GrpcOption) app.IServer
NewGRPCServer creates a new grpc server
Types ¶
type GrpcOption ¶
type GrpcOption func(*grpcOptions)
GrpcOption grpc settings
func WithGrpcReadTimeout ¶
func WithGrpcReadTimeout(timeout time.Duration) GrpcOption
WithGrpcReadTimeout setting up read timeout
func WithGrpcRegistry ¶
func WithGrpcRegistry(iRegistry registry.Registry, instance *registry.ServiceInstance) GrpcOption
WithGrpcRegistry registration services
func WithGrpcWriteTimeout ¶
func WithGrpcWriteTimeout(timeout time.Duration) GrpcOption
WithGrpcWriteTimeout setting up writer timeout
Click to show internal directories.
Click to hide internal directories.