Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AES-256
KeyLength = 32
)
Variables ¶
View Source
var ( ErrNoNewTasks = errors.New("no new tasks") ErrTaskVanished = errors.New("task vanished") )
View Source
var (
ErrNoPublicKeyFound = errors.New("no public key found")
)
View Source
var SilentSatellite = false
Functions ¶
func InitPubkey ¶
func InitPubkey()
This function could be called any times you want, explicitly or implicitly.
func StandardSatellite ¶
Types ¶
type PostOffice ¶
type PostOffice struct {
// contains filtered or unexported fields
}
func NewPostOffice ¶
func NewPostOffice(root string, avaliableHandlers []string) *PostOffice
func (*PostOffice) GetTask ¶
func (p *PostOffice) GetTask() (*Postman, error)
type Postman ¶
type Postman struct { Subtask *dispatcher.Subtask // contains filtered or unexported fields }
Handles a specific subtask
func (*Postman) SendResult ¶
func (pm *Postman) SendResult(res *dispatcher.SubtaskResult) error
Click to show internal directories.
Click to hide internal directories.