basenode

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package main provides ...

Index

Constants

View Source
const (
	ConnectionStateConnected    = 1
	ConnectionStateDisconnected = 0
)

Variables

This section is empty.

Functions

func Connect

func Connect() *connection

func SaveConfigToFile

func SaveConfigToFile(cfg *Config)

func SetConfig

func SetConfig(c *Config)

Types

type Config

type Config struct {
	Host string
	Port string
	Uuid string
	Node *json.RawMessage `json:"Node,omitempty"`
}

func NewConfig

func NewConfig() *Config

func (*Config) GetUuid

func (c *Config) GetUuid() string

func (*Config) Merge

func (c *Config) Merge(c2 *Config)

func (*Config) NodeSpecific

func (c *Config) NodeSpecific(i interface{}) error

type Connection

type Connection interface {
	Sendable
	Receive() chan protocol.Command
	State() chan int
}

type Sendable

type Sendable interface {
	Send(interface{})
}

Jump to

Keyboard shortcuts

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