shared

package
v0.0.0-...-5d52b9c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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
var File_shared_target_proto protoreflect.FileDescriptor
View Source
var File_shared_worker_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Method

type Method int32
const (
	Method_PING Method = 0
	Method_GET  Method = 1
)

func (Method) Descriptor

func (Method) Descriptor() protoreflect.EnumDescriptor

func (Method) Enum

func (x Method) Enum() *Method

func (Method) EnumDescriptor deprecated

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

Deprecated: Use Method.Descriptor instead.

func (Method) Number

func (x Method) Number() protoreflect.EnumNumber

func (Method) String

func (x Method) String() string

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) Descriptor deprecated

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

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetAddr

func (x *Target) GetAddr() string

func (*Target) GetInterval

func (x *Target) GetInterval() int32

func (*Target) GetMethod

func (x *Target) GetMethod() Method

func (*Target) GetName

func (x *Target) GetName() string

func (*Target) GetOkCodes

func (x *Target) GetOkCodes() []int32

func (*Target) GetTargetId

func (x *Target) GetTargetId() string

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

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

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

type TargetState

type TargetState int32
const (
	TargetState_DOWN    TargetState = 0
	TargetState_UP      TargetState = 1
	TargetState_UNKNOWN TargetState = 2
)

func (TargetState) Descriptor

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

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) Descriptor deprecated

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

Deprecated: Use Worker.ProtoReflect.Descriptor instead.

func (*Worker) GetAuthToken

func (x *Worker) GetAuthToken() string

func (*Worker) GetName

func (x *Worker) GetName() string

func (*Worker) GetTargets

func (x *Worker) GetTargets() []*Target

func (*Worker) GetWorkerId

func (x *Worker) GetWorkerId() string

func (*Worker) ProtoMessage

func (*Worker) ProtoMessage()

func (*Worker) ProtoReflect

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

func (*Worker) Reset

func (x *Worker) Reset()

func (*Worker) String

func (x *Worker) String() string

Jump to

Keyboard shortcuts

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