srvrmgr

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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() SrvrmgrStatus
	ExecuteCommand(cmd string) (string, error)
}

SrvrMgr is a public interface for the srvrmgr struct.

func NewSrvrmgr

func NewSrvrmgr(connectCmd string, readBufferSize int) SrvrMgr

NewSrvrmgr returns a new srvrmgr struct for provided connection command.

type SrvrmgrStatus added in v0.4.1

type SrvrmgrStatus int

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

const (
	Disconnected SrvrmgrStatus
	Connecting
	Disconnecting
	Connected
	ConnectionError
)

Possible values for the SrvrmgrStatus enum.

func (SrvrmgrStatus) String added in v0.4.1

func (s SrvrmgrStatus) String() string

String return string representation on SrvrmgrStatus value

Jump to

Keyboard shortcuts

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