types

package
v0.0.0-...-bcaea5c Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MikrotikDuration

type MikrotikDuration int

MikrotikDuration type represents a RouterOS durations [w,d] in seconds

func (MikrotikDuration) MarshalMikrotik

func (m MikrotikDuration) MarshalMikrotik() string

func (*MikrotikDuration) UnmarshalMikrotik

func (m *MikrotikDuration) UnmarshalMikrotik(value string) error

type MikrotikIntList

type MikrotikIntList []int

MikrotikIntList type translates slice of ints to comma separated list and back

func (MikrotikIntList) MarshalMikrotik

func (m MikrotikIntList) MarshalMikrotik() string

func (*MikrotikIntList) UnmarshalMikrotik

func (m *MikrotikIntList) UnmarshalMikrotik(value string) error

type MikrotikList

type MikrotikList []string

MikrotikList type translates slice of strings to comma separated list and back

It is useful to seamless serialize/deserialize data during communication with RouterOS

func (MikrotikList) MarshalMikrotik

func (m MikrotikList) MarshalMikrotik() string

func (*MikrotikList) UnmarshalMikrotik

func (m *MikrotikList) UnmarshalMikrotik(value string) error

Jump to

Keyboard shortcuts

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