Documentation
¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetID() string
- func (x *Event) GetNode() *Node
- func (x *Event) GetPayLoad() string
- func (x *Event) GetTimeStamp() *timestamppb.Timestamp
- func (x *Event) GetType() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetID() string
- func (x *Node) GetIP() string
- func (x *Node) GetLastPing() *timestamppb.Timestamp
- func (x *Node) GetName() string
- func (x *Node) GetStatus() StatusType
- func (x *Node) GetType() NodeType
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeType
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetID() string
- func (x *Request) GetNode() *Node
- func (x *Request) GetPayload() string
- func (x *Request) GetTimeStamp() *timestamppb.Timestamp
- func (x *Request) GetType() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type StatusType
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) GetPayLoad ¶
func (*Event) GetTimeStamp ¶
func (x *Event) GetTimeStamp() *timestamppb.Timestamp
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
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) GetLastPing ¶
func (x *Node) GetLastPing() *timestamppb.Timestamp
func (*Node) GetStatus ¶
func (x *Node) GetStatus() StatusType
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeType ¶
type NodeType int32
func (NodeType) Descriptor ¶
func (NodeType) Descriptor() protoreflect.EnumDescriptor
func (NodeType) EnumDescriptor
deprecated
func (NodeType) Number ¶
func (x NodeType) Number() protoreflect.EnumNumber
func (NodeType) Type ¶
func (NodeType) Type() protoreflect.EnumType
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) GetPayload ¶
func (*Request) GetTimeStamp ¶
func (x *Request) GetTimeStamp() *timestamppb.Timestamp
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
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 ¶
func (StatusType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.