Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultAddress = ":0" DefaultName = "go.ebrick.server" DefaultVersion = "latest" )
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.7.0
type Config struct {
Grpc GrpcServerConfig `yaml:"grpc"`
}
type GRPCOptions ¶ added in v0.7.0
type GRPCOptions struct {
MaxConcurrentStreams uint32
Interceptor grpc.UnaryServerInterceptor
}
GRPCOptions holds gRPC-specific configuration options.
type GRPCServer ¶ added in v0.7.0
type GRPCServer interface {
Server
// RegisterServices allows registration of gRPC services
RegisterServices(registerFunc func(s *grpc.Server))
}
GRPCServer defines the interface for a gRPC server.
func NewGRPCServer ¶ added in v0.7.0
func NewGRPCServer(opts ...Option) GRPCServer
NewGRPCServer creates a new gRPC server with the given options.
type GrpcServerConfig ¶ added in v0.7.0
type GrpcServerConfig struct {
Address string `yaml:"address"`
}
type Option ¶
type Option func(*Options)
func WithAddress ¶
func WithInterceptor ¶ added in v0.7.0
func WithInterceptor(interceptor grpc.UnaryServerInterceptor) Option
func WithMaxConcurrentStreams ¶ added in v0.7.0
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.