monkey

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 46 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewPatrick = func(ctx context.Context, node peer.Node) (patrick.Client, error) {
	return patrickClient.New(ctx, node)
}

TODO: This sucks

This is a variable so that it can be overridden in tests

Functions

func Package

func Package() config.ProtoCommandIface

func ToNumber

func ToNumber(in interface{}) int

Types

type Config

type Config config.Node

type Monkey

type Monkey struct {
	Id      string
	Status  patrick.JobStatus
	LogCID  string
	Service *Service
	Job     *patrick.Job
	// contains filtered or unexported fields
}

func (*Monkey) Run

func (m *Monkey) Run()

func (*Monkey) RunJob

func (m *Monkey) RunJob() (err error)

type Service

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

func New

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

func (*Service) Close

func (srv *Service) Close() error

func (*Service) Delete

func (s *Service) Delete(jid string)

func (*Service) Dev

func (s *Service) Dev() bool

func (*Service) Hoarder added in v1.0.11

func (s *Service) Hoarder() hoarderIface.Client

func (*Service) Node

func (s *Service) Node() peer.Node

func (*Service) Patrick

func (s *Service) Patrick() patrick.Client

func (*Service) ServiceHandler

func (m *Service) ServiceHandler(ctx context.Context, conn streams.Connection, body command.Body) (cr.Response, error)

Directories

Path Synopsis
fixtures

Jump to

Keyboard shortcuts

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