callback

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback interface {
	Connecter
}

type Client

type Client struct {
	Username string
}

A client is returned on Client connection

type Connecter

type Connecter interface {
	Connect(*Client, controller.Controller) error
}

type Sender added in v0.2.2

type Sender interface {
	SendCommand(string) error
}

Sender interface is used by the listeners to handle control messages SendCommand can be intercepted, but finally should call your service.SendCommand from your controller with the payload

Jump to

Keyboard shortcuts

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