Documentation ¶
Index ¶
- func New(opts ...Option) (*server, error)
- type ErrorHandler
- type GrpcRegisterer
- type HttpRegisterer
- type Option
- func WithDualRegisterer(regs ...Registry) Option
- func WithGrpcPort(port int) Option
- func WithGrpcRegisterer(regs ...GrpcRegisterer) Option
- func WithHttpPort(port int) Option
- func WithName(name string) Option
- func WithReflection(flag bool) Option
- func WithRequestTimeout(t time.Duration) Option
- func WithUnaryServerInterceptor(intrcptrs ...grpc.UnaryServerInterceptor) Option
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrpcRegisterer ¶
type HttpRegisterer ¶
type Option ¶
type Option func(*config) error
func WithDualRegisterer ¶
WithDualRegisterer used for registering http and gRPC handlers
func WithGrpcRegisterer ¶
func WithGrpcRegisterer(regs ...GrpcRegisterer) Option
WithGrpcRegisterer used for registering only gRPC handlers
func WithReflection ¶ added in v0.0.1
WithReflection used to set ReflectionFlag
func WithRequestTimeout ¶
WithRequestTimeout used to assign request timeout
func WithUnaryServerInterceptor ¶
func WithUnaryServerInterceptor(intrcptrs ...grpc.UnaryServerInterceptor) Option
WithUnaryServerInterceptor used for registering only [UnaryServerInterceptor](https://grpc.io/blog/grpc-web-interceptor/)
type Registry ¶
type Registry interface { GrpcRegisterer HttpRegisterer }
Click to show internal directories.
Click to hide internal directories.