Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
type GRPCServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(log Logger, name string, opts ...GRPCServerOption) GRPCServer
New creates a new GRPCServer that is bound to a specific GRPC API. This object complies with the standard Listener service and can be managed by the startup.Listeners object.
func (*GRPCServer) Listen ¶
func (g *GRPCServer) Listen() error
func (*GRPCServer) String ¶
func (g *GRPCServer) String() string
type GRPCServerOption ¶
type GRPCServerOption func(*GRPCServer)
func WithAppendedInterceptor ¶
func WithAppendedInterceptor(i grpcUnaryServerInterceptor) GRPCServerOption
func WithPrependedInterceptor ¶
func WithPrependedInterceptor(i grpcUnaryServerInterceptor) GRPCServerOption
func WithReflection ¶ added in v0.10.0
func WithReflection(r bool) GRPCServerOption
func WithRegisterServer ¶
func WithRegisterServer(r RegisterServer) GRPCServerOption
func WithoutHealth ¶ added in v0.10.0
func WithoutHealth() GRPCServerOption
type RegisterServer ¶
type RegisterServer func(*grpcServer)
Click to show internal directories.
Click to hide internal directories.