controller

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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 Controller

type Controller interface {
	// The primary idea was to use Reader interface here
	// But the reader may read a partial message and this will complicate agent main loop
	// and agent would be responsible for receiving and joining all message parts.
	// So instead hide that joining part and make a controller responsible for receiving full message.
	Recv() ([]byte, error)
	// Writer method Write(b) is used for sending message to controller
	io.Writer
	// Close() terminates controller. After Close controller will not reconnect
	// and may not be used to receive or send messages.
	io.Closer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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