srvrmgr

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SrvrMgr

type SrvrMgr interface {
	Connect() error
	Disconnect() error
	GetStatus() Status
	ExecuteCommand(cmd string) (string, error)
}

SrvrMgr is a public interface for the srvrmgr struct (https://stackoverflow.com/a/53034166).

func NewSrvrmgr

func NewSrvrmgr(connectCmd string, readBufferSize int) SrvrMgr

NewSrvrmgr returns a new srvrmgr struct for provided connection command.

type Status

type Status int

Status is an enumeration of srvrmgr statuses that represent a simple value.

const (
	Disconnected Status
	Connecting
	Disconnecting
	Connected
	ConnectionError
)

Possible values for the Status enum.

Jump to

Keyboard shortcuts

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