fmp_pb

package
v0.0.0-...-e45c2a7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Device

type Device struct {
	Hostname string   `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Ipaddr   string   `protobuf:"bytes,2,opt,name=ipaddr,proto3" json:"ipaddr,omitempty"`
	Model    string   `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
	Sitecode string   `protobuf:"bytes,4,opt,name=sitecode,proto3" json:"sitecode,omitempty"`
	Locality string   `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"`
	Tags     []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

func (*Device) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetHostname

func (x *Device) GetHostname() string

func (*Device) GetIpaddr

func (x *Device) GetIpaddr() string

func (*Device) GetLocality

func (x *Device) GetLocality() string

func (*Device) GetModel

func (x *Device) GetModel() string

func (*Device) GetSitecode

func (x *Device) GetSitecode() string

func (*Device) GetTags

func (x *Device) GetTags() []string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type Devices

type Devices struct {
	Devices   map[string]*Device ``                                                                         /* 155-byte string literal not displayed */
	Timestamp int64              `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //The moment that this metadata was generated
	//Extra information describing locality positions
	Localities map[string]*Locality `` /* 161-byte string literal not displayed */
	//Links to remote locations
	Links []*Link `protobuf:"bytes,4,rep,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

A structure containing all the devices listed in the network repo.

func (*Devices) Descriptor deprecated

func (*Devices) Descriptor() ([]byte, []int)

Deprecated: Use Devices.ProtoReflect.Descriptor instead.

func (*Devices) GetDevices

func (x *Devices) GetDevices() map[string]*Device
func (x *Devices) GetLinks() []*Link

func (*Devices) GetLocalities

func (x *Devices) GetLocalities() map[string]*Locality

func (*Devices) GetTimestamp

func (x *Devices) GetTimestamp() int64

func (*Devices) ProtoMessage

func (*Devices) ProtoMessage()

func (*Devices) ProtoReflect

func (x *Devices) ProtoReflect() protoreflect.Message

func (*Devices) Reset

func (x *Devices) Reset()

func (*Devices) String

func (x *Devices) String() string
type Link struct {
	Local   string   `protobuf:"bytes,1,opt,name=local,proto3" json:"local,omitempty"`
	Remote  string   `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"`
	Network *Network `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	Tags    []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetLocal

func (x *Link) GetLocal() string

func (*Link) GetNetwork

func (x *Link) GetNetwork() *Network

func (*Link) GetRemote

func (x *Link) GetRemote() string

func (*Link) GetTags

func (x *Link) GetTags() []string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type Locality

type Locality struct {
	Locality  string  `protobuf:"bytes,1,opt,name=locality,proto3" json:"locality,omitempty"`
	Latitude  float32 `protobuf:"fixed32,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude float32 `protobuf:"fixed32,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// contains filtered or unexported fields
}

func (*Locality) Descriptor deprecated

func (*Locality) Descriptor() ([]byte, []int)

Deprecated: Use Locality.ProtoReflect.Descriptor instead.

func (*Locality) GetLatitude

func (x *Locality) GetLatitude() float32

func (*Locality) GetLocality

func (x *Locality) GetLocality() string

func (*Locality) GetLongitude

func (x *Locality) GetLongitude() float32

func (*Locality) ProtoMessage

func (*Locality) ProtoMessage()

func (*Locality) ProtoReflect

func (x *Locality) ProtoReflect() protoreflect.Message

func (*Locality) Reset

func (x *Locality) Reset()

func (*Locality) String

func (x *Locality) String() string

type Network

type Network struct {
	Ip   []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Mask []byte `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"`
	// contains filtered or unexported fields
}

func (*Network) Descriptor deprecated

func (*Network) Descriptor() ([]byte, []int)

Deprecated: Use Network.ProtoReflect.Descriptor instead.

func (*Network) GetIp

func (x *Network) GetIp() []byte

func (*Network) GetMask

func (x *Network) GetMask() []byte

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) ProtoReflect

func (x *Network) ProtoReflect() protoreflect.Message

func (*Network) Reset

func (x *Network) Reset()

func (*Network) String

func (x *Network) String() string

Jump to

Keyboard shortcuts

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