tools

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "CLIENT",
		2: "PROXY",
	}
	NodeType_value = map[string]int32{
		"UNSPECIFIED": 0,
		"CLIENT":      1,
		"PROXY":       2,
	}
)

Enum value maps for NodeType.

View Source
var (
	StatusType_name = map[int32]string{
		0: "UNKNOWN",
		1: "DOWN",
		2: "UP",
	}
	StatusType_value = map[string]int32{
		"UNKNOWN": 0,
		"DOWN":    1,
		"UP":      2,
	}
)

Enum value maps for StatusType.

View Source
var File_protos_tools_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {
	ID        string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	PayLoad   string                 `protobuf:"bytes,2,opt,name=PayLoad,proto3" json:"PayLoad,omitempty"`
	Node      *Node                  `protobuf:"bytes,3,opt,name=Node,proto3" json:"Node,omitempty"`
	TimeStamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Type      string                 `protobuf:"bytes,5,opt,name=Type,proto3" json:"Type,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetID

func (x *Event) GetID() string

func (*Event) GetNode

func (x *Event) GetNode() *Node

func (*Event) GetPayLoad

func (x *Event) GetPayLoad() string

func (*Event) GetTimeStamp

func (x *Event) GetTimeStamp() *timestamppb.Timestamp

func (*Event) GetType

func (x *Event) GetType() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Node

type Node struct {
	ID       string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	IP       string                 `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"`
	Name     string                 `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	Type     NodeType               `protobuf:"varint,4,opt,name=type,proto3,enum=NodeType" json:"type,omitempty"`
	LastPing *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=LastPing,proto3" json:"LastPing,omitempty"`
	Status   StatusType             `protobuf:"varint,6,opt,name=Status,proto3,enum=StatusType" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetID

func (x *Node) GetID() string

func (*Node) GetIP

func (x *Node) GetIP() string

func (*Node) GetLastPing

func (x *Node) GetLastPing() *timestamppb.Timestamp

func (*Node) GetName

func (x *Node) GetName() string

func (*Node) GetStatus

func (x *Node) GetStatus() StatusType

func (*Node) GetType

func (x *Node) GetType() NodeType

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeType

type NodeType int32
const (
	NodeType_UNSPECIFIED NodeType = 0
	NodeType_CLIENT      NodeType = 1
	NodeType_PROXY       NodeType = 2
)

func (NodeType) Descriptor

func (NodeType) Descriptor() protoreflect.EnumDescriptor

func (NodeType) Enum

func (x NodeType) Enum() *NodeType

func (NodeType) EnumDescriptor deprecated

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

Deprecated: Use NodeType.Descriptor instead.

func (NodeType) Number

func (x NodeType) Number() protoreflect.EnumNumber

func (NodeType) String

func (x NodeType) String() string

func (NodeType) Type

type Request

type Request struct {
	ID        string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Payload   string                 `protobuf:"bytes,2,opt,name=Payload,proto3" json:"Payload,omitempty"`
	Node      *Node                  `protobuf:"bytes,3,opt,name=Node,proto3" json:"Node,omitempty"`
	TimeStamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"`
	Type      string                 `protobuf:"bytes,5,opt,name=Type,proto3" json:"Type,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetID

func (x *Request) GetID() string

func (*Request) GetNode

func (x *Request) GetNode() *Node

func (*Request) GetPayload

func (x *Request) GetPayload() string

func (*Request) GetTimeStamp

func (x *Request) GetTimeStamp() *timestamppb.Timestamp

func (*Request) GetType

func (x *Request) GetType() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type StatusType

type StatusType int32
const (
	StatusType_UNKNOWN StatusType = 0
	StatusType_DOWN    StatusType = 1
	StatusType_UP      StatusType = 2
)

func (StatusType) Descriptor

func (StatusType) Descriptor() protoreflect.EnumDescriptor

func (StatusType) Enum

func (x StatusType) Enum() *StatusType

func (StatusType) EnumDescriptor deprecated

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

Deprecated: Use StatusType.Descriptor instead.

func (StatusType) Number

func (x StatusType) Number() protoreflect.EnumNumber

func (StatusType) String

func (x StatusType) String() string

func (StatusType) Type

Jump to

Keyboard shortcuts

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