satellite

package
v0.0.0-...-5e74752 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: MIT Imports: 19 Imported by: 0

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 Decrypt

func Decrypt(content string, orig []byte) (string, error)

func GenKey

func GenKey() (orig []byte, cipher string)

func InitPubkey

func InitPubkey()

This function could be called any times you want, explicitly or implicitly.

func NakedEncrypt

func NakedEncrypt(content string, orig []byte) (string, error)

func StandardSatellite

func StandardSatellite(root string, delay time.Duration)

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

Jump to

Keyboard shortcuts

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