Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the implementation for twirp to use
func NewService ¶
NewService creates the new service with dependencies
func (Service) Actions ¶
func (s Service) Actions(ctx context.Context, cmd *pb.ReadActions) (*pb.ActionsRead, error)
Actions gets the next action for the agent or an empty list if there's nothing to do
func (Service) Ready ¶
Ready implements the ReadyService method so this service can be part of a health check routine
func (Service) Results ¶
func (s Service) Results(ctx context.Context, cmd *pb.ReturnResult) (*pb.ResultReturned, error)
Results returns a result for this agent
Click to show internal directories.
Click to hide internal directories.