api_v1

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "CONST",
		1: "PROBABILITY",
		2: "RATE_LIMITING",
		3: "ADAPTIVE",
		4: "DYNAMIC",
	}
	Type_value = map[string]int32{
		"CONST":         0,
		"PROBABILITY":   1,
		"RATE_LIMITING": 2,
		"ADAPTIVE":      3,
		"DYNAMIC":       4,
	}
)

Enum value maps for Type.

View Source
var (
	Message_MessageType_name = map[int32]string{
		0: "NEW_RELATION",
		1: "NEW_OPERATION",
		2: "EXPIRED_OPERATION",
		3: "EVALUATING_TAGS",
	}
	Message_MessageType_value = map[string]int32{
		"NEW_RELATION":      0,
		"NEW_OPERATION":     1,
		"EXPIRED_OPERATION": 2,
		"EVALUATING_TAGS":   3,
	}
)

Enum value maps for Message_MessageType.

View Source
var (
	EvaluatingTag_ValueType_name = map[int32]string{
		0: "INTEGER",
		1: "FLOAT",
		2: "BOOLEAN",
		4: "STRING",
	}
	EvaluatingTag_ValueType_value = map[string]int32{
		"INTEGER": 0,
		"FLOAT":   1,
		"BOOLEAN": 2,
		"STRING":  4,
	}
)

Enum value maps for EvaluatingTag_ValueType.

View Source
var (
	EvaluatingTag_OperationType_name = map[int32]string{
		0: "EQUAL_TO",
		1: "NOT_EQUAL_TO",
		2: "GREATER_THAN",
		3: "GREATER_THAN_OR_EQUAL_TO",
		4: "LESS_THAN",
		5: "LESS_THAN_OR_EQUAL_TO",
	}
	EvaluatingTag_OperationType_value = map[string]int32{
		"EQUAL_TO":                 0,
		"NOT_EQUAL_TO":             1,
		"GREATER_THAN":             2,
		"GREATER_THAN_OR_EQUAL_TO": 3,
		"LESS_THAN":                4,
		"LESS_THAN_OR_EQUAL_TO":    5,
	}
)

Enum value maps for EvaluatingTag_OperationType.

View Source
var File_dynamic_sampling_proto protoreflect.FileDescriptor
View Source
var File_gossip_proto protoreflect.FileDescriptor
View Source
var File_houyi_proto protoreflect.FileDescriptor

Functions

func RegisterEvaluatorManagerServer

func RegisterEvaluatorManagerServer(s grpc.ServiceRegistrar, srv EvaluatorManagerServer)

func RegisterRegistryServer

func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)

func RegisterSeedServer

func RegisterSeedServer(s grpc.ServiceRegistrar, srv SeedServer)

func RegisterStrategyManagerServer

func RegisterStrategyManagerServer(s grpc.ServiceRegistrar, srv StrategyManagerServer)

Types

type AdaptiveSampling

type AdaptiveSampling struct {
	SamplingRate float64 `protobuf:"fixed64,1,opt,name=samplingRate,proto3" json:"samplingRate,omitempty"`
	// contains filtered or unexported fields
}

func (*AdaptiveSampling) Descriptor deprecated

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

Deprecated: Use AdaptiveSampling.ProtoReflect.Descriptor instead.

func (*AdaptiveSampling) GetSamplingRate added in v1.3.1

func (x *AdaptiveSampling) GetSamplingRate() float64

func (*AdaptiveSampling) ProtoMessage

func (*AdaptiveSampling) ProtoMessage()

func (*AdaptiveSampling) ProtoReflect

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

func (*AdaptiveSampling) Reset

func (x *AdaptiveSampling) Reset()

func (*AdaptiveSampling) String

func (x *AdaptiveSampling) String() string

type ConstSampling

type ConstSampling struct {
	AlwaysSample bool `protobuf:"varint,1,opt,name=alwaysSample,proto3" json:"alwaysSample,omitempty"`
	// contains filtered or unexported fields
}

func (*ConstSampling) Descriptor deprecated

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

Deprecated: Use ConstSampling.ProtoReflect.Descriptor instead.

func (*ConstSampling) GetAlwaysSample added in v1.3.1

func (x *ConstSampling) GetAlwaysSample() bool

func (*ConstSampling) ProtoMessage

func (*ConstSampling) ProtoMessage()

func (*ConstSampling) ProtoReflect

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

func (*ConstSampling) Reset

func (x *ConstSampling) Reset()

func (*ConstSampling) String

func (x *ConstSampling) String() string

type DynamicSampling

type DynamicSampling struct {
	SamplingRate float64 `protobuf:"fixed64,1,opt,name=samplingRate,proto3" json:"samplingRate,omitempty"`
	// contains filtered or unexported fields
}

func (*DynamicSampling) Descriptor deprecated

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

Deprecated: Use DynamicSampling.ProtoReflect.Descriptor instead.

func (*DynamicSampling) GetSamplingRate added in v1.3.1

func (x *DynamicSampling) GetSamplingRate() float64

func (*DynamicSampling) ProtoMessage

func (*DynamicSampling) ProtoMessage()

func (*DynamicSampling) ProtoReflect

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

func (*DynamicSampling) Reset

func (x *DynamicSampling) Reset()

func (*DynamicSampling) String

func (x *DynamicSampling) String() string

type EvaluatingTag

type EvaluatingTag struct {
	TagName       string                      `protobuf:"bytes,1,opt,name=tagName,proto3" json:"tagName,omitempty"`
	OperationType EvaluatingTag_OperationType `protobuf:"varint,2,opt,name=operationType,proto3,enum=houyi.EvaluatingTag_OperationType" json:"operationType,omitempty"`
	ValueType     EvaluatingTag_ValueType     `protobuf:"varint,3,opt,name=valueType,proto3,enum=houyi.EvaluatingTag_ValueType" json:"valueType,omitempty"`
	// Types that are assignable to Value:
	//	*EvaluatingTag_IntegerVal
	//	*EvaluatingTag_FloatVal
	//	*EvaluatingTag_BooleanVal
	//	*EvaluatingTag_StringVal
	Value isEvaluatingTag_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*EvaluatingTag) Descriptor deprecated

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

Deprecated: Use EvaluatingTag.ProtoReflect.Descriptor instead.

func (*EvaluatingTag) GetBooleanVal

func (x *EvaluatingTag) GetBooleanVal() bool

func (*EvaluatingTag) GetFloatVal

func (x *EvaluatingTag) GetFloatVal() float64

func (*EvaluatingTag) GetIntegerVal

func (x *EvaluatingTag) GetIntegerVal() int64

func (*EvaluatingTag) GetOperationType

func (x *EvaluatingTag) GetOperationType() EvaluatingTag_OperationType

func (*EvaluatingTag) GetStringVal

func (x *EvaluatingTag) GetStringVal() string

func (*EvaluatingTag) GetTagName

func (x *EvaluatingTag) GetTagName() string

func (*EvaluatingTag) GetValue

func (m *EvaluatingTag) GetValue() isEvaluatingTag_Value

func (*EvaluatingTag) GetValueType

func (x *EvaluatingTag) GetValueType() EvaluatingTag_ValueType

func (*EvaluatingTag) ProtoMessage

func (*EvaluatingTag) ProtoMessage()

func (*EvaluatingTag) ProtoReflect

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

func (*EvaluatingTag) Reset

func (x *EvaluatingTag) Reset()

func (*EvaluatingTag) String

func (x *EvaluatingTag) String() string

type EvaluatingTag_BooleanVal

type EvaluatingTag_BooleanVal struct {
	BooleanVal bool `protobuf:"varint,6,opt,name=booleanVal,proto3,oneof"`
}

type EvaluatingTag_FloatVal

type EvaluatingTag_FloatVal struct {
	FloatVal float64 `protobuf:"fixed64,5,opt,name=floatVal,proto3,oneof"`
}

type EvaluatingTag_IntegerVal

type EvaluatingTag_IntegerVal struct {
	IntegerVal int64 `protobuf:"varint,4,opt,name=integerVal,proto3,oneof"`
}

type EvaluatingTag_OperationType

type EvaluatingTag_OperationType int32
const (
	EvaluatingTag_EQUAL_TO                 EvaluatingTag_OperationType = 0
	EvaluatingTag_NOT_EQUAL_TO             EvaluatingTag_OperationType = 1
	EvaluatingTag_GREATER_THAN             EvaluatingTag_OperationType = 2
	EvaluatingTag_GREATER_THAN_OR_EQUAL_TO EvaluatingTag_OperationType = 3
	EvaluatingTag_LESS_THAN                EvaluatingTag_OperationType = 4
	EvaluatingTag_LESS_THAN_OR_EQUAL_TO    EvaluatingTag_OperationType = 5
)

func (EvaluatingTag_OperationType) Descriptor

func (EvaluatingTag_OperationType) Enum

func (EvaluatingTag_OperationType) EnumDescriptor deprecated

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

Deprecated: Use EvaluatingTag_OperationType.Descriptor instead.

func (EvaluatingTag_OperationType) Number

func (EvaluatingTag_OperationType) String

func (EvaluatingTag_OperationType) Type

type EvaluatingTag_StringVal

type EvaluatingTag_StringVal struct {
	StringVal string `protobuf:"bytes,7,opt,name=stringVal,proto3,oneof"`
}

type EvaluatingTag_ValueType

type EvaluatingTag_ValueType int32
const (
	EvaluatingTag_INTEGER EvaluatingTag_ValueType = 0
	EvaluatingTag_FLOAT   EvaluatingTag_ValueType = 1
	EvaluatingTag_BOOLEAN EvaluatingTag_ValueType = 2
	EvaluatingTag_STRING  EvaluatingTag_ValueType = 4
)

func (EvaluatingTag_ValueType) Descriptor

func (EvaluatingTag_ValueType) Enum

func (EvaluatingTag_ValueType) EnumDescriptor deprecated

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

Deprecated: Use EvaluatingTag_ValueType.Descriptor instead.

func (EvaluatingTag_ValueType) Number

func (EvaluatingTag_ValueType) String

func (x EvaluatingTag_ValueType) String() string

func (EvaluatingTag_ValueType) Type

type EvaluatingTags

type EvaluatingTags struct {
	Tags []*EvaluatingTag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluatingTags) Descriptor deprecated

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

Deprecated: Use EvaluatingTags.ProtoReflect.Descriptor instead.

func (*EvaluatingTags) GetTags

func (x *EvaluatingTags) GetTags() []*EvaluatingTag

func (*EvaluatingTags) ProtoMessage

func (*EvaluatingTags) ProtoMessage()

func (*EvaluatingTags) ProtoReflect

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

func (*EvaluatingTags) Reset

func (x *EvaluatingTags) Reset()

func (*EvaluatingTags) String

func (x *EvaluatingTags) String() string

type EvaluatorManagerClient

type EvaluatorManagerClient interface {
	UpdateTags(ctx context.Context, in *UpdateTagsRequest, opts ...grpc.CallOption) (*NullRely, error)
}

EvaluatorManagerClient is the client API for EvaluatorManager service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EvaluatorManagerServer

type EvaluatorManagerServer interface {
	UpdateTags(context.Context, *UpdateTagsRequest) (*NullRely, error)
	// contains filtered or unexported methods
}

EvaluatorManagerServer is the server API for EvaluatorManager service. All implementations must embed UnimplementedEvaluatorManagerServer for forward compatibility

type HeartbeatReply

type HeartbeatReply struct {
	NodeId int64   `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
	Peers  []*Peer `protobuf:"bytes,3,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

func (*HeartbeatReply) Descriptor deprecated

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

Deprecated: Use HeartbeatReply.ProtoReflect.Descriptor instead.

func (*HeartbeatReply) GetNodeId

func (x *HeartbeatReply) GetNodeId() int64

func (*HeartbeatReply) GetPeers

func (x *HeartbeatReply) GetPeers() []*Peer

func (*HeartbeatReply) ProtoMessage

func (*HeartbeatReply) ProtoMessage()

func (*HeartbeatReply) ProtoReflect

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

func (*HeartbeatReply) Reset

func (x *HeartbeatReply) Reset()

func (*HeartbeatReply) String

func (x *HeartbeatReply) String() string

type HeartbeatRequest

type HeartbeatRequest struct {
	NodeId int64  `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
	Port   int64  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Ip     string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*HeartbeatRequest) Descriptor deprecated

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

Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.

func (*HeartbeatRequest) GetIp added in v1.3.0

func (x *HeartbeatRequest) GetIp() string

func (*HeartbeatRequest) GetNodeId

func (x *HeartbeatRequest) GetNodeId() int64

func (*HeartbeatRequest) GetPort

func (x *HeartbeatRequest) GetPort() int64

func (*HeartbeatRequest) ProtoMessage

func (*HeartbeatRequest) ProtoMessage()

func (*HeartbeatRequest) ProtoReflect

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

func (*HeartbeatRequest) Reset

func (x *HeartbeatRequest) Reset()

func (*HeartbeatRequest) String

func (x *HeartbeatRequest) String() string

type Message

type Message struct {
	MsgId   int64               `protobuf:"varint,1,opt,name=msgId,proto3" json:"msgId,omitempty"`
	MsgType Message_MessageType `protobuf:"varint,2,opt,name=msgType,proto3,enum=gossip.Message_MessageType" json:"msgType,omitempty"`
	// Types that are assignable to Msg:
	//	*Message_Operation
	//	*Message_Relation
	//	*Message_EvaluateTags
	Msg isMessage_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetEvaluateTags

func (x *Message) GetEvaluateTags() *EvaluatingTags

func (*Message) GetMsg

func (m *Message) GetMsg() isMessage_Msg

func (*Message) GetMsgId

func (x *Message) GetMsgId() int64

func (*Message) GetMsgType

func (x *Message) GetMsgType() Message_MessageType

func (*Message) GetOperation

func (x *Message) GetOperation() *Operation

func (*Message) GetRelation

func (x *Message) GetRelation() *Relation

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_EvaluateTags

type Message_EvaluateTags struct {
	EvaluateTags *EvaluatingTags `protobuf:"bytes,5,opt,name=evaluateTags,proto3,oneof"`
}

type Message_MessageType

type Message_MessageType int32
const (
	Message_NEW_RELATION      Message_MessageType = 0
	Message_NEW_OPERATION     Message_MessageType = 1
	Message_EXPIRED_OPERATION Message_MessageType = 2
	Message_EVALUATING_TAGS   Message_MessageType = 3
)

func (Message_MessageType) Descriptor

func (Message_MessageType) Enum

func (Message_MessageType) EnumDescriptor deprecated

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

Deprecated: Use Message_MessageType.Descriptor instead.

func (Message_MessageType) Number

func (Message_MessageType) String

func (x Message_MessageType) String() string

func (Message_MessageType) Type

type Message_Operation

type Message_Operation struct {
	Operation *Operation `protobuf:"bytes,3,opt,name=operation,proto3,oneof"`
}

type Message_Relation

type Message_Relation struct {
	Relation *Relation `protobuf:"bytes,4,opt,name=relation,proto3,oneof"`
}

type NullRely

type NullRely struct {
	// contains filtered or unexported fields
}

func (*NullRely) Descriptor deprecated

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

Deprecated: Use NullRely.ProtoReflect.Descriptor instead.

func (*NullRely) ProtoMessage

func (*NullRely) ProtoMessage()

func (*NullRely) ProtoReflect

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

func (*NullRely) Reset

func (x *NullRely) Reset()

func (*NullRely) String

func (x *NullRely) String() string

type NullReply

type NullReply struct {
	// contains filtered or unexported fields
}

func (*NullReply) Descriptor deprecated

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

Deprecated: Use NullReply.ProtoReflect.Descriptor instead.

func (*NullReply) ProtoMessage

func (*NullReply) ProtoMessage()

func (*NullReply) ProtoReflect

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

func (*NullReply) Reset

func (x *NullReply) Reset()

func (*NullReply) String

func (x *NullReply) String() string

type Operation

type Operation struct {
	Service   string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetOperation

func (x *Operation) GetOperation() string

func (*Operation) GetService

func (x *Operation) GetService() string

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

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

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type Peer

type Peer struct {
	Ip   string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port int64  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetIp

func (x *Peer) GetIp() string

func (*Peer) GetPort

func (x *Peer) GetPort() int64

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

type PerOperationStrategy added in v1.3.1

type PerOperationStrategy struct {
	Service   string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
	Type      Type   `protobuf:"varint,3,opt,name=type,proto3,enum=sampling.Type" json:"type,omitempty"`
	// Types that are assignable to Strategy:
	//	*PerOperationStrategy_Const
	//	*PerOperationStrategy_Probability
	//	*PerOperationStrategy_RateLimiting
	//	*PerOperationStrategy_Adaptive
	//	*PerOperationStrategy_Dynamic
	Strategy isPerOperationStrategy_Strategy `protobuf_oneof:"strategy"`
	// contains filtered or unexported fields
}

func (*PerOperationStrategy) Descriptor deprecated added in v1.3.1

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

Deprecated: Use PerOperationStrategy.ProtoReflect.Descriptor instead.

func (*PerOperationStrategy) GetAdaptive added in v1.3.1

func (x *PerOperationStrategy) GetAdaptive() *AdaptiveSampling

func (*PerOperationStrategy) GetConst added in v1.3.1

func (x *PerOperationStrategy) GetConst() *ConstSampling

func (*PerOperationStrategy) GetDynamic added in v1.3.1

func (x *PerOperationStrategy) GetDynamic() *DynamicSampling

func (*PerOperationStrategy) GetOperation added in v1.3.1

func (x *PerOperationStrategy) GetOperation() string

func (*PerOperationStrategy) GetProbability added in v1.3.1

func (x *PerOperationStrategy) GetProbability() *ProbabilitySampling

func (*PerOperationStrategy) GetRateLimiting added in v1.3.1

func (x *PerOperationStrategy) GetRateLimiting() *RateLimitingSampling

func (*PerOperationStrategy) GetService added in v1.3.1

func (x *PerOperationStrategy) GetService() string

func (*PerOperationStrategy) GetStrategy added in v1.3.1

func (m *PerOperationStrategy) GetStrategy() isPerOperationStrategy_Strategy

func (*PerOperationStrategy) GetType added in v1.3.1

func (x *PerOperationStrategy) GetType() Type

func (*PerOperationStrategy) ProtoMessage added in v1.3.1

func (*PerOperationStrategy) ProtoMessage()

func (*PerOperationStrategy) ProtoReflect added in v1.3.1

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

func (*PerOperationStrategy) Reset added in v1.3.1

func (x *PerOperationStrategy) Reset()

func (*PerOperationStrategy) String added in v1.3.1

func (x *PerOperationStrategy) String() string

type PerOperationStrategy_Adaptive added in v1.3.1

type PerOperationStrategy_Adaptive struct {
	Adaptive *AdaptiveSampling `protobuf:"bytes,7,opt,name=adaptive,proto3,oneof"`
}

type PerOperationStrategy_Const added in v1.3.1

type PerOperationStrategy_Const struct {
	Const *ConstSampling `protobuf:"bytes,4,opt,name=const,proto3,oneof"`
}

type PerOperationStrategy_Dynamic added in v1.3.1

type PerOperationStrategy_Dynamic struct {
	Dynamic *DynamicSampling `protobuf:"bytes,8,opt,name=dynamic,proto3,oneof"`
}

type PerOperationStrategy_Probability added in v1.3.1

type PerOperationStrategy_Probability struct {
	Probability *ProbabilitySampling `protobuf:"bytes,5,opt,name=probability,proto3,oneof"`
}

type PerOperationStrategy_RateLimiting added in v1.3.1

type PerOperationStrategy_RateLimiting struct {
	RateLimiting *RateLimitingSampling `protobuf:"bytes,6,opt,name=rateLimiting,proto3,oneof"`
}

type ProbabilitySampling

type ProbabilitySampling struct {
	SamplingRate float64 `protobuf:"fixed64,1,opt,name=samplingRate,proto3" json:"samplingRate,omitempty"`
	// contains filtered or unexported fields
}

func (*ProbabilitySampling) Descriptor deprecated

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

Deprecated: Use ProbabilitySampling.ProtoReflect.Descriptor instead.

func (*ProbabilitySampling) GetSamplingRate

func (x *ProbabilitySampling) GetSamplingRate() float64

func (*ProbabilitySampling) ProtoMessage

func (*ProbabilitySampling) ProtoMessage()

func (*ProbabilitySampling) ProtoReflect

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

func (*ProbabilitySampling) Reset

func (x *ProbabilitySampling) Reset()

func (*ProbabilitySampling) String

func (x *ProbabilitySampling) String() string

type RateLimitingSampling

type RateLimitingSampling struct {
	MaxTracesPerSecond int64 `protobuf:"varint,1,opt,name=maxTracesPerSecond,proto3" json:"maxTracesPerSecond,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLimitingSampling) Descriptor deprecated

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

Deprecated: Use RateLimitingSampling.ProtoReflect.Descriptor instead.

func (*RateLimitingSampling) GetMaxTracesPerSecond

func (x *RateLimitingSampling) GetMaxTracesPerSecond() int64

func (*RateLimitingSampling) ProtoMessage

func (*RateLimitingSampling) ProtoMessage()

func (*RateLimitingSampling) ProtoReflect

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

func (*RateLimitingSampling) Reset

func (x *RateLimitingSampling) Reset()

func (*RateLimitingSampling) String

func (x *RateLimitingSampling) String() string

type RegisterRely

type RegisterRely struct {
	NodeId     int64   `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
	Interval   int64   `protobuf:"varint,2,opt,name=interval,proto3" json:"interval,omitempty"`
	RandomPick int64   `protobuf:"varint,3,opt,name=randomPick,proto3" json:"randomPick,omitempty"`
	ProbToR    float64 `protobuf:"fixed64,4,opt,name=probToR,proto3" json:"probToR,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRely) Descriptor deprecated

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

Deprecated: Use RegisterRely.ProtoReflect.Descriptor instead.

func (*RegisterRely) GetInterval

func (x *RegisterRely) GetInterval() int64

func (*RegisterRely) GetNodeId

func (x *RegisterRely) GetNodeId() int64

func (*RegisterRely) GetProbToR

func (x *RegisterRely) GetProbToR() float64

func (*RegisterRely) GetRandomPick

func (x *RegisterRely) GetRandomPick() int64

func (*RegisterRely) ProtoMessage

func (*RegisterRely) ProtoMessage()

func (*RegisterRely) ProtoReflect

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

func (*RegisterRely) Reset

func (x *RegisterRely) Reset()

func (*RegisterRely) String

func (x *RegisterRely) String() string

type RegisterRequest

type RegisterRequest struct {
	Port int64  `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	Ip   string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetIp added in v1.3.0

func (x *RegisterRequest) GetIp() string

func (*RegisterRequest) GetPort

func (x *RegisterRequest) GetPort() int64

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegistryClient

type RegistryClient interface {
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterRely, error)
	Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*HeartbeatReply, error)
}

RegistryClient is the client API for Registry service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewRegistryClient

func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient

type RegistryServer

type RegistryServer interface {
	Register(context.Context, *RegisterRequest) (*RegisterRely, error)
	Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatReply, error)
	// contains filtered or unexported methods
}

RegistryServer is the server API for Registry service. All implementations must embed UnimplementedRegistryServer for forward compatibility

type Relation

type Relation struct {
	From *Operation `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   *Operation `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Relation) Descriptor deprecated

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

Deprecated: Use Relation.ProtoReflect.Descriptor instead.

func (*Relation) GetFrom

func (x *Relation) GetFrom() *Operation

func (*Relation) GetTo

func (x *Relation) GetTo() *Operation

func (*Relation) ProtoMessage

func (*Relation) ProtoMessage()

func (*Relation) ProtoReflect

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

func (*Relation) Reset

func (x *Relation) Reset()

func (*Relation) String

func (x *Relation) String() string

type SeedClient

type SeedClient interface {
	Sync(ctx context.Context, in *Message, opts ...grpc.CallOption) (*NullReply, error)
}

SeedClient is the client API for Seed service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSeedClient

func NewSeedClient(cc grpc.ClientConnInterface) SeedClient

type SeedServer

type SeedServer interface {
	Sync(context.Context, *Message) (*NullReply, error)
	// contains filtered or unexported methods
}

SeedServer is the server API for Seed service. All implementations must embed UnimplementedSeedServer for forward compatibility

type StrategiesResponse added in v1.3.1

type StrategiesResponse struct {
	Strategies []*PerOperationStrategy `protobuf:"bytes,1,rep,name=strategies,proto3" json:"strategies,omitempty"`
	// contains filtered or unexported fields
}

func (*StrategiesResponse) Descriptor deprecated added in v1.3.1

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

Deprecated: Use StrategiesResponse.ProtoReflect.Descriptor instead.

func (*StrategiesResponse) GetStrategies added in v1.3.1

func (x *StrategiesResponse) GetStrategies() []*PerOperationStrategy

func (*StrategiesResponse) ProtoMessage added in v1.3.1

func (*StrategiesResponse) ProtoMessage()

func (*StrategiesResponse) ProtoReflect added in v1.3.1

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

func (*StrategiesResponse) Reset added in v1.3.1

func (x *StrategiesResponse) Reset()

func (*StrategiesResponse) String added in v1.3.1

func (x *StrategiesResponse) String() string

type StrategyManagerClient

type StrategyManagerClient interface {
	GetStrategies(ctx context.Context, in *StrategyRequest, opts ...grpc.CallOption) (*StrategiesResponse, error)
	Promote(ctx context.Context, in *Operation, opts ...grpc.CallOption) (*NullRely, error)
}

StrategyManagerClient is the client API for strategyManager service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type StrategyManagerServer

type StrategyManagerServer interface {
	GetStrategies(context.Context, *StrategyRequest) (*StrategiesResponse, error)
	Promote(context.Context, *Operation) (*NullRely, error)
	// contains filtered or unexported methods
}

StrategyManagerServer is the server API for strategyManager service. All implementations must embed UnimplementedStrategyManagerServer for forward compatibility

type StrategyRequest

type StrategyRequest struct {
	Service    string                       `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Operations []*StrategyRequest_Operation `protobuf:"bytes,3,rep,name=operations,proto3" json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*StrategyRequest) Descriptor deprecated

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

Deprecated: Use StrategyRequest.ProtoReflect.Descriptor instead.

func (*StrategyRequest) GetOperations

func (x *StrategyRequest) GetOperations() []*StrategyRequest_Operation

func (*StrategyRequest) GetService

func (x *StrategyRequest) GetService() string

func (*StrategyRequest) ProtoMessage

func (*StrategyRequest) ProtoMessage()

func (*StrategyRequest) ProtoReflect

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

func (*StrategyRequest) Reset

func (x *StrategyRequest) Reset()

func (*StrategyRequest) String

func (x *StrategyRequest) String() string

type StrategyRequest_Operation

type StrategyRequest_Operation struct {
	Name string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Qps  float64 `protobuf:"fixed64,2,opt,name=qps,proto3" json:"qps,omitempty"`
	// contains filtered or unexported fields
}

func (*StrategyRequest_Operation) Descriptor deprecated

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

Deprecated: Use StrategyRequest_Operation.ProtoReflect.Descriptor instead.

func (*StrategyRequest_Operation) GetName

func (x *StrategyRequest_Operation) GetName() string

func (*StrategyRequest_Operation) GetQps

func (x *StrategyRequest_Operation) GetQps() float64

func (*StrategyRequest_Operation) ProtoMessage

func (*StrategyRequest_Operation) ProtoMessage()

func (*StrategyRequest_Operation) ProtoReflect

func (*StrategyRequest_Operation) Reset

func (x *StrategyRequest_Operation) Reset()

func (*StrategyRequest_Operation) String

func (x *StrategyRequest_Operation) String() string

type Type added in v1.3.1

type Type int32
const (
	Type_CONST         Type = 0
	Type_PROBABILITY   Type = 1
	Type_RATE_LIMITING Type = 2
	Type_ADAPTIVE      Type = 3
	Type_DYNAMIC       Type = 4
)

func (Type) Descriptor added in v1.3.1

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum added in v1.3.1

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated added in v1.3.1

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number added in v1.3.1

func (x Type) Number() protoreflect.EnumNumber

func (Type) String added in v1.3.1

func (x Type) String() string

func (Type) Type added in v1.3.1

func (Type) Type() protoreflect.EnumType

type UnimplementedEvaluatorManagerServer

type UnimplementedEvaluatorManagerServer struct {
}

UnimplementedEvaluatorManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedEvaluatorManagerServer) UpdateTags

type UnimplementedRegistryServer

type UnimplementedRegistryServer struct {
}

UnimplementedRegistryServer must be embedded to have forward compatible implementations.

func (UnimplementedRegistryServer) Heartbeat

func (UnimplementedRegistryServer) Register

type UnimplementedSeedServer

type UnimplementedSeedServer struct {
}

UnimplementedSeedServer must be embedded to have forward compatible implementations.

func (UnimplementedSeedServer) Sync

type UnimplementedStrategyManagerServer

type UnimplementedStrategyManagerServer struct {
}

UnimplementedStrategyManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedStrategyManagerServer) GetStrategies added in v1.3.1

func (UnimplementedStrategyManagerServer) Promote added in v1.3.1

type UnsafeEvaluatorManagerServer

type UnsafeEvaluatorManagerServer interface {
	// contains filtered or unexported methods
}

UnsafeEvaluatorManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EvaluatorManagerServer will result in compilation errors.

type UnsafeRegistryServer

type UnsafeRegistryServer interface {
	// contains filtered or unexported methods
}

UnsafeRegistryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistryServer will result in compilation errors.

type UnsafeSeedServer

type UnsafeSeedServer interface {
	// contains filtered or unexported methods
}

UnsafeSeedServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SeedServer will result in compilation errors.

type UnsafeStrategyManagerServer

type UnsafeStrategyManagerServer interface {
	// contains filtered or unexported methods
}

UnsafeStrategyManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StrategyManagerServer will result in compilation errors.

type UpdateTagsRequest

type UpdateTagsRequest struct {
	Tags []*EvaluatingTag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTagsRequest) Descriptor deprecated

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

Deprecated: Use UpdateTagsRequest.ProtoReflect.Descriptor instead.

func (*UpdateTagsRequest) GetTags

func (x *UpdateTagsRequest) GetTags() []*EvaluatingTag

func (*UpdateTagsRequest) ProtoMessage

func (*UpdateTagsRequest) ProtoMessage()

func (*UpdateTagsRequest) ProtoReflect

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

func (*UpdateTagsRequest) Reset

func (x *UpdateTagsRequest) Reset()

func (*UpdateTagsRequest) String

func (x *UpdateTagsRequest) String() string

Jump to

Keyboard shortcuts

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