session

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolRCON    = "rcon"
	ProtocolTELNET  = "telnet"
	ProtocolWebRCON = "web"
)

Allowed protocols.

View Source
const DefaultProtocol = ProtocolRCON

DefaultProtocol contains the default protocol for connecting to a remote server.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Address  string `json:"address" yaml:"address"`
	Password string `json:"password" yaml:"password"`
	// Log is the name of the file to which requests will be logged.
	// If not specified, no logging will be performed.
	Log  string `json:"log" yaml:"log"`
	Type string `json:"type" yaml:"type"`
}

Session contains details for making a request on a remote server.

Jump to

Keyboard shortcuts

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