routeros

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Address string
	Headers map[string]string
	Tls     *tls.Config
	Debug   bool
}

type RouterOS

type RouterOS struct {
	Client *resty.Client
}

func New

func New(opts *Options) *RouterOS

func (*RouterOS) GetVersionInfo

func (r *RouterOS) GetVersionInfo() (VersionInfoResponse, error)

func (*RouterOS) Interfaces

func (r *RouterOS) Interfaces() interfaces.Interfaces

func (*RouterOS) Ipv4

func (r *RouterOS) Ipv4() ipv4.Ipv4

func (*RouterOS) Routing

func (r *RouterOS) Routing() routing.Routing

type VersionInfoResponse

type VersionInfoResponse struct {
	BoardName string `json:"board-name"`
	Version   string `json:"version"`
}

Jump to

Keyboard shortcuts

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