remote

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Route_Status_name = map[int32]string{
		0: "ADD",
		1: "DELETE",
	}
	Route_Status_value = map[string]int32{
		"ADD":    0,
		"DELETE": 1,
	}
)

Enum value maps for Route_Status.

View Source
var File_remote_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Deregister

type Deregister struct {
	Network      string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Srv6Endpoint string `protobuf:"bytes,2,opt,name=srv6_endpoint,json=srv6Endpoint,proto3" json:"srv6_endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*Deregister) Descriptor deprecated

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

Deprecated: Use Deregister.ProtoReflect.Descriptor instead.

func (*Deregister) GetNetwork

func (x *Deregister) GetNetwork() string

func (*Deregister) GetSrv6Endpoint

func (x *Deregister) GetSrv6Endpoint() string

func (*Deregister) ProtoMessage

func (*Deregister) ProtoMessage()

func (*Deregister) ProtoReflect

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

func (*Deregister) Reset

func (x *Deregister) Reset()

func (*Deregister) String

func (x *Deregister) String() string

type Envelope

type Envelope struct {

	// Types that are valid to be assigned to Kind:
	//
	//	*Envelope_Register
	//	*Envelope_Deregister
	//	*Envelope_Route
	Kind isEnvelope_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetDeregister

func (x *Envelope) GetDeregister() *Deregister

func (*Envelope) GetKind

func (x *Envelope) GetKind() isEnvelope_Kind

func (*Envelope) GetRegister

func (x *Envelope) GetRegister() *Register

func (*Envelope) GetRoute

func (x *Envelope) GetRoute() *Route

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

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

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

type Envelope_Deregister

type Envelope_Deregister struct {
	Deregister *Deregister `protobuf:"bytes,2,opt,name=deregister,proto3,oneof"`
}

type Envelope_Register

type Envelope_Register struct {
	Register *Register `protobuf:"bytes,1,opt,name=register,proto3,oneof"`
}

type Envelope_Route

type Envelope_Route struct {
	Route *Route `protobuf:"bytes,3,opt,name=route,proto3,oneof"`
}

type Register

type Register struct {
	Network      string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Srv6Endpoint string `protobuf:"bytes,2,opt,name=srv6_endpoint,json=srv6Endpoint,proto3" json:"srv6_endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*Register) Descriptor deprecated

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

Deprecated: Use Register.ProtoReflect.Descriptor instead.

func (*Register) GetNetwork

func (x *Register) GetNetwork() string

func (*Register) GetSrv6Endpoint

func (x *Register) GetSrv6Endpoint() string

func (*Register) ProtoMessage

func (*Register) ProtoMessage()

func (*Register) ProtoReflect

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

func (*Register) Reset

func (x *Register) Reset()

func (*Register) String

func (x *Register) String() string

type Remote

type Remote struct {
	URL            string
	ClientID       string
	Username       string
	Password       string
	QoS            byte
	TopicRX        string
	TopicTX        string
	ReceiveHandler func([]byte) error
	// contains filtered or unexported fields
}

func (*Remote) Run

func (r *Remote) Run(ctx context.Context) error

func (*Remote) Send

func (r *Remote) Send(payload interface{})

type Route

type Route struct {
	Network      string       `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Srv6Endpoint string       `protobuf:"bytes,2,opt,name=srv6_endpoint,json=srv6Endpoint,proto3" json:"srv6_endpoint,omitempty"`
	Srv6Segments []string     `protobuf:"bytes,3,rep,name=srv6_segments,json=srv6Segments,proto3" json:"srv6_segments,omitempty"`
	Status       Route_Status `protobuf:"varint,4,opt,name=status,proto3,enum=remote.v1.Route_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Route) Descriptor deprecated

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetNetwork

func (x *Route) GetNetwork() string

func (*Route) GetSrv6Endpoint

func (x *Route) GetSrv6Endpoint() string

func (*Route) GetSrv6Segments

func (x *Route) GetSrv6Segments() []string

func (*Route) GetStatus

func (x *Route) GetStatus() Route_Status

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

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

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type Route_Status

type Route_Status int32
const (
	Route_ADD    Route_Status = 0
	Route_DELETE Route_Status = 1
)

func (Route_Status) Descriptor

func (Route_Status) Enum

func (x Route_Status) Enum() *Route_Status

func (Route_Status) EnumDescriptor deprecated

func (Route_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Route_Status.Descriptor instead.

func (Route_Status) Number

func (Route_Status) String

func (x Route_Status) String() string

func (Route_Status) Type

Jump to

Keyboard shortcuts

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