service

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: BSD-3-Clause Imports: 43 Imported by: 0

Documentation

Index

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 Config

type Config struct {
	config.Node `yaml:"z,omitempty"`
}

type Lock

type Lock struct {
	Pid       libp2p.ID `cbor:"4,keyasint"`
	Timestamp int64     `cbor:"8,keyasint"`
	Eta       int64     `cbor:"16,keyasint"`
}

TODO: optimize cbor storage

type PatrickService

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

func New

func New(ctx context.Context, config *tauConfig.Node) (*PatrickService, error)

func (*PatrickService) Close

func (srv *PatrickService) Close() error

func (*PatrickService) GitHubTokenHTTPAuth

func (srv *PatrickService) GitHubTokenHTTPAuth(ctx http.Context) (interface{}, error)

GitHub token HTTP auth

func (*PatrickService) GitHubTokenHTTPAuthCleanup

func (srv *PatrickService) GitHubTokenHTTPAuthCleanup(ctx http.Context) (interface{}, error)

GitHub token HTTP auth cleanup

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

Job reannouncement functionality

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