ctrl

package
v0.0.0-...-55c0a6c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CtrlConfiguration

type CtrlConfiguration struct {
	Port int8
}

type CtrlFunction

type CtrlFunction func(m Message) string

type CtrlServer

type CtrlServer struct {
	Connection net.Listener
	Commands   map[string]CtrlFunction
}

func NewConnection

func NewConnection(cf *CtrlConfiguration) (*CtrlServer, error)

func (*CtrlServer) Close

func (c *CtrlServer) Close()

type Message

type Message struct {
	Command  string
	Signatur string
	Text     interface{}
	Time     time.Time
}

Jump to

Keyboard shortcuts

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