agent

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Load_Evaluate_FullMethodName = "/api.agent.Load/Evaluate"
)

Variables

View Source
var File_agent_load_proto protoreflect.FileDescriptor
View Source
var Load_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.agent.Load",
	HandlerType: (*LoadServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Evaluate",
			Handler:    _Load_Evaluate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "agent/load.proto",
}

Load_ServiceDesc is the grpc.ServiceDesc for Load service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLoadServer

func RegisterLoadServer(s grpc.ServiceRegistrar, srv LoadServer)

Types

type EvaluateReply

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

func (*EvaluateReply) Descriptor deprecated

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

Deprecated: Use EvaluateReply.ProtoReflect.Descriptor instead.

func (*EvaluateReply) ProtoMessage

func (*EvaluateReply) ProtoMessage()

func (*EvaluateReply) ProtoReflect

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

func (*EvaluateReply) Reset

func (x *EvaluateReply) Reset()

func (*EvaluateReply) String

func (x *EvaluateReply) String() string

func (*EvaluateReply) Validate

func (m *EvaluateReply) Validate() error

Validate checks the field values on EvaluateReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EvaluateReply) ValidateAll

func (m *EvaluateReply) ValidateAll() error

ValidateAll checks the field values on EvaluateReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EvaluateReplyMultiError, or nil if none found.

type EvaluateReplyMultiError

type EvaluateReplyMultiError []error

EvaluateReplyMultiError is an error wrapping multiple validation errors returned by EvaluateReply.ValidateAll() if the designated constraints aren't met.

func (EvaluateReplyMultiError) AllErrors

func (m EvaluateReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EvaluateReplyMultiError) Error

func (m EvaluateReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EvaluateReplyValidationError

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

EvaluateReplyValidationError is the validation error returned by EvaluateReply.Validate if the designated constraints aren't met.

func (EvaluateReplyValidationError) Cause

Cause function returns cause value.

func (EvaluateReplyValidationError) Error

Error satisfies the builtin error interface

func (EvaluateReplyValidationError) ErrorName

func (e EvaluateReplyValidationError) ErrorName() string

ErrorName returns error name.

func (EvaluateReplyValidationError) Field

Field function returns field value.

func (EvaluateReplyValidationError) Key

Key function returns key value.

func (EvaluateReplyValidationError) Reason

Reason function returns reason value.

type EvaluateRequest

type EvaluateRequest struct {
	GroupList []*api.GroupSimple `protobuf:"bytes,1,rep,name=groupList,proto3" json:"groupList,omitempty"`
	// contains filtered or unexported fields
}

func (*EvaluateRequest) Descriptor deprecated

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

Deprecated: Use EvaluateRequest.ProtoReflect.Descriptor instead.

func (*EvaluateRequest) GetGroupList

func (x *EvaluateRequest) GetGroupList() []*api.GroupSimple

func (*EvaluateRequest) ProtoMessage

func (*EvaluateRequest) ProtoMessage()

func (*EvaluateRequest) ProtoReflect

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

func (*EvaluateRequest) Reset

func (x *EvaluateRequest) Reset()

func (*EvaluateRequest) String

func (x *EvaluateRequest) String() string

func (*EvaluateRequest) Validate

func (m *EvaluateRequest) Validate() error

Validate checks the field values on EvaluateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EvaluateRequest) ValidateAll

func (m *EvaluateRequest) ValidateAll() error

ValidateAll checks the field values on EvaluateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EvaluateRequestMultiError, or nil if none found.

type EvaluateRequestMultiError

type EvaluateRequestMultiError []error

EvaluateRequestMultiError is an error wrapping multiple validation errors returned by EvaluateRequest.ValidateAll() if the designated constraints aren't met.

func (EvaluateRequestMultiError) AllErrors

func (m EvaluateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EvaluateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EvaluateRequestValidationError

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

EvaluateRequestValidationError is the validation error returned by EvaluateRequest.Validate if the designated constraints aren't met.

func (EvaluateRequestValidationError) Cause

Cause function returns cause value.

func (EvaluateRequestValidationError) Error

Error satisfies the builtin error interface

func (EvaluateRequestValidationError) ErrorName

func (e EvaluateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (EvaluateRequestValidationError) Field

Field function returns field value.

func (EvaluateRequestValidationError) Key

Key function returns key value.

func (EvaluateRequestValidationError) Reason

Reason function returns reason value.

type LoadClient

type LoadClient interface {
	// 校验规则
	Evaluate(ctx context.Context, in *EvaluateRequest, opts ...grpc.CallOption) (*EvaluateReply, error)
}

LoadClient is the client API for Load 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 NewLoadClient

func NewLoadClient(cc grpc.ClientConnInterface) LoadClient

type LoadServer

type LoadServer interface {
	// 校验规则
	Evaluate(context.Context, *EvaluateRequest) (*EvaluateReply, error)
	// contains filtered or unexported methods
}

LoadServer is the server API for Load service. All implementations must embed UnimplementedLoadServer for forward compatibility

type StrategyGroupAllReply

type StrategyGroupAllReply struct {
	GroupList []*api.GroupSimple `protobuf:"bytes,1,rep,name=groupList,proto3" json:"groupList,omitempty"`
	// contains filtered or unexported fields
}

func (*StrategyGroupAllReply) Descriptor deprecated

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

Deprecated: Use StrategyGroupAllReply.ProtoReflect.Descriptor instead.

func (*StrategyGroupAllReply) GetGroupList

func (x *StrategyGroupAllReply) GetGroupList() []*api.GroupSimple

func (*StrategyGroupAllReply) ProtoMessage

func (*StrategyGroupAllReply) ProtoMessage()

func (*StrategyGroupAllReply) ProtoReflect

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

func (*StrategyGroupAllReply) Reset

func (x *StrategyGroupAllReply) Reset()

func (*StrategyGroupAllReply) String

func (x *StrategyGroupAllReply) String() string

func (*StrategyGroupAllReply) Validate

func (m *StrategyGroupAllReply) Validate() error

Validate checks the field values on StrategyGroupAllReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StrategyGroupAllReply) ValidateAll

func (m *StrategyGroupAllReply) ValidateAll() error

ValidateAll checks the field values on StrategyGroupAllReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StrategyGroupAllReplyMultiError, or nil if none found.

type StrategyGroupAllReplyMultiError

type StrategyGroupAllReplyMultiError []error

StrategyGroupAllReplyMultiError is an error wrapping multiple validation errors returned by StrategyGroupAllReply.ValidateAll() if the designated constraints aren't met.

func (StrategyGroupAllReplyMultiError) AllErrors

func (m StrategyGroupAllReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StrategyGroupAllReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StrategyGroupAllReplyValidationError

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

StrategyGroupAllReplyValidationError is the validation error returned by StrategyGroupAllReply.Validate if the designated constraints aren't met.

func (StrategyGroupAllReplyValidationError) Cause

Cause function returns cause value.

func (StrategyGroupAllReplyValidationError) Error

Error satisfies the builtin error interface

func (StrategyGroupAllReplyValidationError) ErrorName

ErrorName returns error name.

func (StrategyGroupAllReplyValidationError) Field

Field function returns field value.

func (StrategyGroupAllReplyValidationError) Key

Key function returns key value.

func (StrategyGroupAllReplyValidationError) Reason

Reason function returns reason value.

type StrategyGroupAllRequest

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

func (*StrategyGroupAllRequest) Descriptor deprecated

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

Deprecated: Use StrategyGroupAllRequest.ProtoReflect.Descriptor instead.

func (*StrategyGroupAllRequest) ProtoMessage

func (*StrategyGroupAllRequest) ProtoMessage()

func (*StrategyGroupAllRequest) ProtoReflect

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

func (*StrategyGroupAllRequest) Reset

func (x *StrategyGroupAllRequest) Reset()

func (*StrategyGroupAllRequest) String

func (x *StrategyGroupAllRequest) String() string

func (*StrategyGroupAllRequest) Validate

func (m *StrategyGroupAllRequest) Validate() error

Validate checks the field values on StrategyGroupAllRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StrategyGroupAllRequest) ValidateAll

func (m *StrategyGroupAllRequest) ValidateAll() error

ValidateAll checks the field values on StrategyGroupAllRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StrategyGroupAllRequestMultiError, or nil if none found.

type StrategyGroupAllRequestMultiError

type StrategyGroupAllRequestMultiError []error

StrategyGroupAllRequestMultiError is an error wrapping multiple validation errors returned by StrategyGroupAllRequest.ValidateAll() if the designated constraints aren't met.

func (StrategyGroupAllRequestMultiError) AllErrors

func (m StrategyGroupAllRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StrategyGroupAllRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StrategyGroupAllRequestValidationError

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

StrategyGroupAllRequestValidationError is the validation error returned by StrategyGroupAllRequest.Validate if the designated constraints aren't met.

func (StrategyGroupAllRequestValidationError) Cause

Cause function returns cause value.

func (StrategyGroupAllRequestValidationError) Error

Error satisfies the builtin error interface

func (StrategyGroupAllRequestValidationError) ErrorName

ErrorName returns error name.

func (StrategyGroupAllRequestValidationError) Field

Field function returns field value.

func (StrategyGroupAllRequestValidationError) Key

Key function returns key value.

func (StrategyGroupAllRequestValidationError) Reason

Reason function returns reason value.

type StrategyGroupDiffReply

type StrategyGroupDiffReply struct {
	AppendItems []*api.GroupSimple `protobuf:"bytes,1,rep,name=appendItems,proto3" json:"appendItems,omitempty"`
	DeleteItems []*api.GroupSimple `protobuf:"bytes,2,rep,name=deleteItems,proto3" json:"deleteItems,omitempty"`
	UpdateItems []*api.GroupSimple `protobuf:"bytes,3,rep,name=updateItems,proto3" json:"updateItems,omitempty"`
	// contains filtered or unexported fields
}

func (*StrategyGroupDiffReply) Descriptor deprecated

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

Deprecated: Use StrategyGroupDiffReply.ProtoReflect.Descriptor instead.

func (*StrategyGroupDiffReply) GetAppendItems

func (x *StrategyGroupDiffReply) GetAppendItems() []*api.GroupSimple

func (*StrategyGroupDiffReply) GetDeleteItems

func (x *StrategyGroupDiffReply) GetDeleteItems() []*api.GroupSimple

func (*StrategyGroupDiffReply) GetUpdateItems

func (x *StrategyGroupDiffReply) GetUpdateItems() []*api.GroupSimple

func (*StrategyGroupDiffReply) ProtoMessage

func (*StrategyGroupDiffReply) ProtoMessage()

func (*StrategyGroupDiffReply) ProtoReflect

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

func (*StrategyGroupDiffReply) Reset

func (x *StrategyGroupDiffReply) Reset()

func (*StrategyGroupDiffReply) String

func (x *StrategyGroupDiffReply) String() string

func (*StrategyGroupDiffReply) Validate

func (m *StrategyGroupDiffReply) Validate() error

Validate checks the field values on StrategyGroupDiffReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StrategyGroupDiffReply) ValidateAll

func (m *StrategyGroupDiffReply) ValidateAll() error

ValidateAll checks the field values on StrategyGroupDiffReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StrategyGroupDiffReplyMultiError, or nil if none found.

type StrategyGroupDiffReplyMultiError

type StrategyGroupDiffReplyMultiError []error

StrategyGroupDiffReplyMultiError is an error wrapping multiple validation errors returned by StrategyGroupDiffReply.ValidateAll() if the designated constraints aren't met.

func (StrategyGroupDiffReplyMultiError) AllErrors

func (m StrategyGroupDiffReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StrategyGroupDiffReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StrategyGroupDiffReplyValidationError

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

StrategyGroupDiffReplyValidationError is the validation error returned by StrategyGroupDiffReply.Validate if the designated constraints aren't met.

func (StrategyGroupDiffReplyValidationError) Cause

Cause function returns cause value.

func (StrategyGroupDiffReplyValidationError) Error

Error satisfies the builtin error interface

func (StrategyGroupDiffReplyValidationError) ErrorName

ErrorName returns error name.

func (StrategyGroupDiffReplyValidationError) Field

Field function returns field value.

func (StrategyGroupDiffReplyValidationError) Key

Key function returns key value.

func (StrategyGroupDiffReplyValidationError) Reason

Reason function returns reason value.

type StrategyGroupDiffRequest

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

func (*StrategyGroupDiffRequest) Descriptor deprecated

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

Deprecated: Use StrategyGroupDiffRequest.ProtoReflect.Descriptor instead.

func (*StrategyGroupDiffRequest) ProtoMessage

func (*StrategyGroupDiffRequest) ProtoMessage()

func (*StrategyGroupDiffRequest) ProtoReflect

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

func (*StrategyGroupDiffRequest) Reset

func (x *StrategyGroupDiffRequest) Reset()

func (*StrategyGroupDiffRequest) String

func (x *StrategyGroupDiffRequest) String() string

func (*StrategyGroupDiffRequest) Validate

func (m *StrategyGroupDiffRequest) Validate() error

Validate checks the field values on StrategyGroupDiffRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StrategyGroupDiffRequest) ValidateAll

func (m *StrategyGroupDiffRequest) ValidateAll() error

ValidateAll checks the field values on StrategyGroupDiffRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StrategyGroupDiffRequestMultiError, or nil if none found.

type StrategyGroupDiffRequestMultiError

type StrategyGroupDiffRequestMultiError []error

StrategyGroupDiffRequestMultiError is an error wrapping multiple validation errors returned by StrategyGroupDiffRequest.ValidateAll() if the designated constraints aren't met.

func (StrategyGroupDiffRequestMultiError) AllErrors

func (m StrategyGroupDiffRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StrategyGroupDiffRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StrategyGroupDiffRequestValidationError

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

StrategyGroupDiffRequestValidationError is the validation error returned by StrategyGroupDiffRequest.Validate if the designated constraints aren't met.

func (StrategyGroupDiffRequestValidationError) Cause

Cause function returns cause value.

func (StrategyGroupDiffRequestValidationError) Error

Error satisfies the builtin error interface

func (StrategyGroupDiffRequestValidationError) ErrorName

ErrorName returns error name.

func (StrategyGroupDiffRequestValidationError) Field

Field function returns field value.

func (StrategyGroupDiffRequestValidationError) Key

Key function returns key value.

func (StrategyGroupDiffRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedLoadServer

type UnimplementedLoadServer struct {
}

UnimplementedLoadServer must be embedded to have forward compatible implementations.

func (UnimplementedLoadServer) Evaluate

type UnsafeLoadServer

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

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

Jump to

Keyboard shortcuts

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