Versions in this module Expand all Collapse all v0 v0.9.0 Feb 6, 2025 Changes in this version + var DefaultAddress = ":0" + var DefaultName = "go.ebrick.server" + var DefaultVersion = "latest" + type Config struct + Grpc GrpcServerConfig + func GetConfig() (*Config, error) + type GRPCOptions struct + Interceptor grpc.UnaryServerInterceptor + MaxConcurrentStreams uint32 + type GRPCServer interface + RegisterService func(registerFunc func(s *grpc.Server)) + func NewGRPCServer(opts ...Option) GRPCServer + type GrpcServerConfig struct + Address string + Enabled bool + type Option func(*Options) + func WithAddress(address string) Option + func WithInterceptor(interceptor grpc.UnaryServerInterceptor) Option + func WithMaxConcurrentStreams(maxStreams uint32) Option + func WithName(name string) Option + func WithVersion(version string) Option + type Options struct + Address string + GRPCOptions GRPCOptions + Name string + Version string + type Server interface + Options func() Options + Start func() error + Stop func() error + type ServiceRegistrar interface + RegisterGRPCServices func(s GRPCServer)