 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
	Address string
	TLSOptions *tls.Config
	Options []grpc.ServerOption
	MuxExtensions []runtime.ServeMuxOption
	Gateway *ConfigurationGateway
}
    func (*Configuration) RenderOptions ¶
func (c *Configuration) RenderOptions() []grpc.ServerOption
type ConfigurationGateway ¶
type ConfigurationGateway struct {
	Address string
}
    type GRPCErrorStatus ¶
func AsGRPCErrorStatus ¶
func AsGRPCErrorStatus(err error) (GRPCErrorStatus, bool)
type Health ¶
type Health interface {
	Update(key string, state HealthState)
}
    type HealthService ¶
func NewHealthService ¶
func NewHealthService(cfg Configuration, t HealthType, handlers ...Handler) (HealthService, error)
type Service ¶
type Service interface {
	Start(ctx context.Context) ServiceStarter
	StartWithHealth(ctx context.Context, health Health) ServiceStarter
}
    func NewService ¶
func NewService(cfg Configuration, handlers ...Handler) (Service, error)
type ServiceStarter ¶
type Shutdown ¶
type Shutdown interface {
	Shutdown(cancelFunc context.CancelFunc)
}
     Click to show internal directories. 
   Click to hide internal directories.