Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Module ¶
Module is a fx module that provides a status Registry and registers status service handlers as grpc-gateway handlers.
func NewStatus ¶
NewStatus creates a new instance of Status to be pushed into status registry. Use this function for creating status instead of by hand.
func RegisterStatusService ¶
RegisterStatusService registers the StatusService implementation with the provided grpc server.
Types ¶
type Registry ¶
type Registry interface { GetStatus() *statusv1.Status SetStatus(*statusv1.Status) SetGroupStatus(*statusv1.GroupStatus) GetGroupStatus() *statusv1.GroupStatus Child(key, value string) Registry ChildIfExists(key, value string) Registry Parent() Registry Root() Registry Detach() Key() string Value() string URI() string HasError() bool GetLogger() *log.Logger GetAlerter() alerts.Alerter }
Registry .
type StatusService ¶
type StatusService struct { statusv1.UnimplementedStatusServiceServer // contains filtered or unexported fields }
StatusService is the implementation of the statusv1.StatusServiceServer interface.
func (*StatusService) GetGroupStatus ¶
func (svc *StatusService) GetGroupStatus(ctx context.Context, req *statusv1.GroupStatusRequest) (*statusv1.GroupStatus, error)
GetGroupStatus returns the group status for the requested group in the Registry.
Click to show internal directories.
Click to hide internal directories.