grcon/client/client.go

11 lines
379 B
Go
Raw Permalink Normal View History

2022-03-16 11:16:44 +01:00
// Package client provides some implementations to interact over RCON with different servers.
2022-03-03 18:36:04 +01:00
package client
2022-03-04 21:51:29 +01:00
// Client is the interface that should be implemented by ever client type.
type Client interface {
// Auth authenticates the client against the server.
Auth(password string) error
// Exec executes a command on the remote console.
Exec(cmd string) ([]byte, error)
}