agent

package
v1.1.1-0...-b92a7c3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Name string
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(name string) *Agent

func (*Agent) Start

func (a *Agent) Start(stop <-chan struct{}) <-chan struct{}

type Command

type Command struct {
	Command string                 `json:"command"`
	Params  map[string]interface{} `json:"params"`
}

type Message

type Message struct {
	Type      string      `json:"type"`
	Timestamp int64       `json:"timestamp"`
	Payload   interface{} `json:"payload"`
}

type StartLoadCommand

type StartLoadCommand struct {
	Type           string                 `mapstructure:"type"`
	ChainIDs       []string               `mapstructure:"chainIds"`
	EsAddress      string                 `mapstructure:"esAddress"`
	EntrySizeRange common.IntRange        `mapstructure:"entrySizeRange"`
	Params         map[string]interface{} `mapstructure:"params"`
}

Jump to

Keyboard shortcuts

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