Documentation
¶
Index ¶
- Variables
- func Package() config.ProtoCommandIface
- type Assignment
- type PatrickService
- func (srv *PatrickService) Close() error
- func (srv *PatrickService) GitHubTokenHTTPAuth(ctx http.Context) (interface{}, error)
- func (srv *PatrickService) GitHubTokenHTTPAuthCleanup(ctx http.Context) (interface{}, error)
- func (s *PatrickService) KV() kvdbIface.KVDB
- func (s *PatrickService) Node() peer.Node
- func (p *PatrickService) ReannounceJobs(ctx context.Context) error
- func (srv *PatrickService) RegisterJob(ctx context.Context, newJob *iface.Job) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BootstrapTime = 10 * time.Second DefaultReAnnounceJobTime = 1 * time.Minute MaxReAnnounceJobs = 10 )
Functions ¶
func Package ¶
func Package() config.ProtoCommandIface
Types ¶
type Assignment ¶ added in v1.2.0
Assignment tracks which Monkey is working on a job.
type PatrickService ¶
type PatrickService struct {
// contains filtered or unexported fields
}
func (*PatrickService) Close ¶
func (srv *PatrickService) Close() error
func (*PatrickService) GitHubTokenHTTPAuth ¶
func (srv *PatrickService) GitHubTokenHTTPAuth(ctx http.Context) (interface{}, error)
func (*PatrickService) GitHubTokenHTTPAuthCleanup ¶
func (srv *PatrickService) GitHubTokenHTTPAuthCleanup(ctx http.Context) (interface{}, error)
func (*PatrickService) KV ¶
func (s *PatrickService) KV() kvdbIface.KVDB
func (*PatrickService) Node ¶
func (s *PatrickService) Node() peer.Node
func (*PatrickService) ReannounceJobs ¶
func (p *PatrickService) ReannounceJobs(ctx context.Context) error
ReannounceJobs scans pending jobs and pushes forgotten or expired ones back onto the queue.
func (*PatrickService) RegisterJob ¶
Click to show internal directories.
Click to hide internal directories.