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 }
func (*Configuration) RenderOptions ¶
func (c *Configuration) RenderOptions() []grpc.ServerOption
type GRPCErrorStatus ¶
func AsGRPCErrorStatus ¶
func AsGRPCErrorStatus(err error) (GRPCErrorStatus, bool)
type Handler ¶
type Handler interface { Name() string Health() HealthState Register(registrar *grpc.Server) }
type Health ¶
type Health interface {
Update(key string, state HealthState)
}
type HealthService ¶
func NewHealthService ¶
func NewHealthService(cfg Configuration, t HealthType, handlers ...Handler) HealthService
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
type ServiceStarter ¶
type Shutdown ¶
type Shutdown interface {
Shutdown(cancelFunc context.CancelFunc)
}
Click to show internal directories.
Click to hide internal directories.