Documentation ¶
Index ¶
- Variables
- type Method
- type Target
- func (*Target) Descriptor() ([]byte, []int)deprecated
- func (x *Target) GetAddr() string
- func (x *Target) GetInterval() int32
- func (x *Target) GetMethod() Method
- func (x *Target) GetName() string
- func (x *Target) GetOkCodes() []int32
- func (x *Target) GetTargetId() string
- func (*Target) ProtoMessage()
- func (x *Target) ProtoReflect() protoreflect.Message
- func (x *Target) Reset()
- func (x *Target) String() string
- type TargetState
- func (TargetState) Descriptor() protoreflect.EnumDescriptor
- func (x TargetState) Enum() *TargetState
- func (TargetState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TargetState) Number() protoreflect.EnumNumber
- func (x TargetState) String() string
- func (TargetState) Type() protoreflect.EnumType
- type Worker
- func (*Worker) Descriptor() ([]byte, []int)deprecated
- func (x *Worker) GetAuthToken() string
- func (x *Worker) GetName() string
- func (x *Worker) GetTargets() []*Target
- func (x *Worker) GetWorkerId() string
- func (*Worker) ProtoMessage()
- func (x *Worker) ProtoReflect() protoreflect.Message
- func (x *Worker) Reset()
- func (x *Worker) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Method_name = map[int32]string{ 0: "PING", 1: "GET", } Method_value = map[string]int32{ "PING": 0, "GET": 1, } )
Enum value maps for Method.
View Source
var ( TargetState_name = map[int32]string{ 0: "DOWN", 1: "UP", 2: "UNKNOWN", } TargetState_value = map[string]int32{ "DOWN": 0, "UP": 1, "UNKNOWN": 2, } )
Enum value maps for TargetState.
View Source
View Source
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method int32
func (Method) Descriptor ¶
func (Method) Descriptor() protoreflect.EnumDescriptor
func (Method) Number ¶
func (x Method) Number() protoreflect.EnumNumber
func (Method) Type ¶
func (Method) Type() protoreflect.EnumType
type Target ¶
type Target struct { TargetId string `protobuf:"bytes,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Interval int32 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Method Method `protobuf:"varint,5,opt,name=method,proto3,enum=emerwen.shared.Method" json:"method,omitempty"` OkCodes []int32 `protobuf:"varint,6,rep,packed,name=ok_codes,json=okCodes,proto3" json:"ok_codes,omitempty"` // contains filtered or unexported fields }
func (*Target) ProtoReflect ¶
func (x *Target) ProtoReflect() protoreflect.Message
type TargetState ¶
type TargetState int32
const ( TargetState_DOWN TargetState = 0 TargetState_UP TargetState = 1 TargetState_UNKNOWN TargetState = 2 )
func (TargetState) Descriptor ¶
func (TargetState) Descriptor() protoreflect.EnumDescriptor
func (TargetState) Enum ¶
func (x TargetState) Enum() *TargetState
func (TargetState) EnumDescriptor
deprecated
func (TargetState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TargetState.Descriptor instead.
func (TargetState) Number ¶
func (x TargetState) Number() protoreflect.EnumNumber
func (TargetState) String ¶
func (x TargetState) String() string
func (TargetState) Type ¶
func (TargetState) Type() protoreflect.EnumType
type Worker ¶
type Worker struct { WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` AuthToken string `protobuf:"bytes,3,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` Targets []*Target `protobuf:"bytes,4,rep,name=targets,proto3" json:"targets,omitempty"` // contains filtered or unexported fields }
func (*Worker) ProtoReflect ¶
func (x *Worker) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.