service

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 53 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BootstrapTime = 10 * time.Second

	DefaultReAnnounceJobTime = 5 * time.Second
	MaxReAnnounceJobs        = 10
)

Functions

func Package

func Package() config.ProtoCommandIface

Types

type Assignment added in v1.2.0

type Assignment struct {
	MonkeyPID string `cbor:"1,keyasint"`
	Timestamp int64  `cbor:"2,keyasint"`
	// Project is set when build caps are on: the claim counts against its project's cap.
	Project string `cbor:"3,keyasint,omitempty"`
}

Assignment tracks which Monkey is working on a job.

type PatrickService

type PatrickService struct {
	// contains filtered or unexported fields
}

func New

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

func (srv *PatrickService) RegisterJob(ctx context.Context, newJob *iface.Job) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL