types

package
v0.0.0-...-91376b0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FidoAddr

type FidoAddr struct {
	// contains filtered or unexported fields
}

FidoAddr struct

func AddrFromNum

func AddrFromNum(zone uint16, net uint16, node uint16, point uint16) *FidoAddr

AddrFromNum return FidoAddr from digits

func AddrFromString

func AddrFromString(s string) *FidoAddr

AddrFromString return FidoAddr from string

func (*FidoAddr) Equal

func (f *FidoAddr) Equal(fn *FidoAddr) bool

Equal compare two *FidoAddr

func (*FidoAddr) FQDN

func (f *FidoAddr) FQDN() (string, error)

FQDN return hostname

func (*FidoAddr) GetNet

func (f *FidoAddr) GetNet() uint16

GetNet return net

func (*FidoAddr) GetNode

func (f *FidoAddr) GetNode() uint16

GetNode return node

func (*FidoAddr) GetPoint

func (f *FidoAddr) GetPoint() uint16

GetPoint return point

func (*FidoAddr) GetZone

func (f *FidoAddr) GetZone() uint16

GetZone return zone

func (FidoAddr) MarshalYAML

func (f FidoAddr) MarshalYAML() (interface{}, error)

MarshalYAML for MarshaYAML

func (*FidoAddr) SetPoint

func (f *FidoAddr) SetPoint(p uint16) *FidoAddr

SetPoint set point

func (*FidoAddr) ShortString

func (f *FidoAddr) ShortString() string

ShortString return ShortString

func (*FidoAddr) String

func (f *FidoAddr) String() string

func (*FidoAddr) UnmarshalYAML

func (f *FidoAddr) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML for UnmarshalYAML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳