types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZBXBoolean

type ZBXBoolean bool

func (ZBXBoolean) MarshalJSON

func (bit ZBXBoolean) MarshalJSON() ([]byte, error)

func (*ZBXBoolean) UnmarshalJSON

func (bit *ZBXBoolean) UnmarshalJSON(data []byte) error

type ZBXDuration

type ZBXDuration time.Duration

func (*ZBXDuration) UnmarshalJSON

func (t *ZBXDuration) UnmarshalJSON(data []byte) (err error)

type ZBXProxyAddresses

type ZBXProxyAddresses []string

ProxyAddresses IP addresses or DNS names of active Zabbix proxy.

func (*ZBXProxyAddresses) MarshalJSON

func (addr *ZBXProxyAddresses) MarshalJSON() ([]byte, error)

func (*ZBXProxyAddresses) UnmarshalJSON

func (addr *ZBXProxyAddresses) UnmarshalJSON(data []byte) error

type ZBXUnixTimestamp

type ZBXUnixTimestamp time.Time

func (*ZBXUnixTimestamp) MarshalJSON

func (t *ZBXUnixTimestamp) MarshalJSON() ([]byte, error)

func (*ZBXUnixTimestamp) UnmarshalJSON

func (t *ZBXUnixTimestamp) UnmarshalJSON(data []byte) error

type ZBXVersion

type ZBXVersion version.Version

func NewZBXVersion

func NewZBXVersion(input string) (*ZBXVersion, error)

func (*ZBXVersion) Compare

func (v *ZBXVersion) Compare(other *ZBXVersion) int

func (*ZBXVersion) LessThan

func (v *ZBXVersion) LessThan(o *ZBXVersion) bool

func (*ZBXVersion) MarshalText

func (v *ZBXVersion) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface.

func (*ZBXVersion) String

func (v *ZBXVersion) String() string

func (*ZBXVersion) UnmarshalJSON

func (v *ZBXVersion) UnmarshalJSON(data []byte) error

func (*ZBXVersion) UnmarshalText

func (v *ZBXVersion) UnmarshalText(b []byte) error

UnmarshalText implements encoding.TextUnmarshaler interface.

Jump to

Keyboard shortcuts

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