slave

package
v0.0.0-...-79b0fad Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slave

type Slave struct {
	Node    *node.Node  `json:"node"`
	Cluster []node.Node `json:"cluster"`
	Tasks   []Task      `json:"tasks"`
}

func (*Slave) Marshal

func (s *Slave) Marshal() ([]byte, error)

Marshal returns the JSON encoding of a node info.

func (*Slave) Run

func (s *Slave) Run() error

func (*Slave) String

func (s *Slave) String() string

type Task

type Task struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
}

func (*Task) Marshal

func (t *Task) Marshal() ([]byte, error)

Marshal returns the JSON encoding of a node info.

func (*Task) String

func (t *Task) String() string

Jump to

Keyboard shortcuts

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