agent

package
v0.0.0-...-3a937ec Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerVersion string

Functions

This section is empty.

Types

type Config

type Config struct {
	Meta   map[string]string `hcl:"meta" json:"meta"`
	System map[string]string `hcl:"system" json:"system"`
}

Agent - specific config

func DefaultConfig

func DefaultConfig() (c *Config)

func (*Config) Read

func (c *Config) Read(path ...string) (err error)

func (*Config) Unmarshal

func (c *Config) Unmarshal(readers ...io.Reader) (err error)

type Server

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

Agent instance

func NewServer

func NewServer(ctx context.Context, log *logx.Log, options ServerOptions) (s *Server)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Configure

func (s *Server) Configure()

func (*Server) Open

func (s *Server) Open() (err error)

func (*Server) Wait

func (s *Server) Wait() (err error)

type ServerOptions

type ServerOptions struct {
	AgentId    string
	ConfigPath []string
	Address    string
	Meta       map[string]string
}

Directories

Path Synopsis
api
bus

Jump to

Keyboard shortcuts

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