Back to godoc.org

Package agent

v0.0.0-...-3a937ec
Latest Go to latest

The latest major version is .

Published: Feb 1, 2018 | License: MIT | Module: github.com/akaspin/soil

Index

Variables

var ServerVersion string

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
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier