Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGrpcServerOption ¶
func RegisterGrpcServerOption(name string, handler func(cnf *conf.Configuration) grpc.ServerOption) error
func RegisterGrpcUnaryInterceptor ¶
func RegisterGrpcUnaryInterceptor(name string, handler func(*conf.Configuration) grpc.UnaryServerInterceptor) error
Types ¶
type Option ¶
type Option func(s *Server)
func Configuration ¶
func Configuration(configuration *conf.Configuration) Option
func Use ¶
func Use(configurable conf.Configurable) Option
func WithGrpcOption ¶
func WithGrpcOption(opts ...grpc.ServerOption) Option
type Server ¶
func NewBuiltIn ¶
func (*Server) Apply ¶
func (s *Server) Apply(cfg *conf.Configuration)
func (*Server) ApplyOptions ¶
type ServerConfig ¶
type ServerConfig struct { Addr string `json:"addr" yaml:"addr"` SSLCertificate string `json:"ssl_certificate" yaml:"ssl_certificate"` SSLCertificateKey string `json:"ssl_certificate_key" yaml:"ssl_certificate_key"` Location string `json:"location" yaml:"location"` Version string `json:"version" yaml:"version"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.