dash

package
v0.0.0-...-fe6dcde Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manifest *module.Manifest

Functions

func Constructor

func Constructor(wrap *module.Wrap) (module.Module, error)

func NewServer

func NewServer(iface string, port uint) (this *server, err error)

Creates and initializes a server

Types

type Config

type Config struct {
	base.Config
	Interface  string `json:"Interface"`
	Port       uint   `json:"Port"`
	ReceiverId string `json:"ReceiverId"`
}

func (Config) GetInterface

func (c Config) GetInterface() string

func (Config) GetPort

func (c Config) GetPort() uint

func (Config) GetReceiverId

func (c Config) GetReceiverId() string

type Configurer

type Configurer interface {
	base.Configurer
	GetReceiverId() string
	GetInterface() string
	GetPort() uint
}

type Module

type Module struct {
	base.Module
	Port       uint
	Interface  string
	ReceiverId string
	// contains filtered or unexported fields
}

func NewModule

func NewModule(w *module.Wrap) (*Module, error)

type Press

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

func (*Press) GetIp

func (p *Press) GetIp() string

type Receiver

type Receiver interface {
	Receive(interface{})
}

Jump to

Keyboard shortcuts

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