Documentation
¶
Index ¶
- Variables
- func Package() config.ProtoCommandIface
- type Config
- type Lock
- 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 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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.