Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadyService ¶
type ReadyService interface {
Ready() error
}
ReadyService is the interface services must implement to be part of a normal ready check when running in kubernetes
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the implementation of a health service
func NewService ¶
func NewService(s ...ReadyService) *Service
NewService creates the service with the other services to ready check
func (Service) Ready ¶
func (s Service) Ready(context.Context, *pb.CheckReady) (*pb.ReadyCheck, error)
Ready gets if the server is ready for traffic
Click to show internal directories.
Click to hide internal directories.