Documentation ¶
Overview ¶
Package routeros provides a programmatic interface to the Mikrotik RouterOS API
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNotFound = errors.New("key not found")
)
Functions ¶
This section is empty.
Types ¶
type AsyncReply ¶
type Client ¶
type Client struct { Address string Username string Password string TLSConfig *tls.Config sync.Mutex // contains filtered or unexported fields }
Client is a RouterOS API client.
type DeviceError ¶
DeviceError records the sentence containing the error received from the device. The sentence may have Word !trap or !fatal.
func (*DeviceError) Error ¶
func (err *DeviceError) Error() string
type Pair ¶
type Pair struct { Key string Value string // Op is used for Query words to signify logical operations // valid operators are -, =, <, > // see http://wiki.mikrotik.com/wiki/Manual:API#Queries for details. Op string }
Pair is a Key-Value pair for RouterOS Attribute, Query, and Reply words use slices of pairs instead of map because we care about order
type UnknownReplyError ¶
UnknownReplyError records the sentence whose Word is unknown.
func (*UnknownReplyError) Error ¶
func (err *UnknownReplyError) Error() string
Click to show internal directories.
Click to hide internal directories.