group

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Group_CreateGroup_FullMethodName            = "/api.server.prom.strategy.group.Group/CreateGroup"
	Group_UpdateGroup_FullMethodName            = "/api.server.prom.strategy.group.Group/UpdateGroup"
	Group_BatchUpdateGroupStatus_FullMethodName = "/api.server.prom.strategy.group.Group/BatchUpdateGroupStatus"
	Group_DeleteGroup_FullMethodName            = "/api.server.prom.strategy.group.Group/DeleteGroup"
	Group_BatchDeleteGroup_FullMethodName       = "/api.server.prom.strategy.group.Group/BatchDeleteGroup"
	Group_GetGroup_FullMethodName               = "/api.server.prom.strategy.group.Group/GetGroup"
	Group_ListGroup_FullMethodName              = "/api.server.prom.strategy.group.Group/ListGroup"
	Group_ListAllGroupDetail_FullMethodName     = "/api.server.prom.strategy.group.Group/ListAllGroupDetail"
	Group_ListAllGroupDetailV2_FullMethodName   = "/api.server.prom.strategy.group.Group/ListAllGroupDetailV2"
	Group_SelectGroup_FullMethodName            = "/api.server.prom.strategy.group.Group/SelectGroup"
	Group_ImportGroup_FullMethodName            = "/api.server.prom.strategy.group.Group/ImportGroup"
	Group_ExportGroup_FullMethodName            = "/api.server.prom.strategy.group.Group/ExportGroup"
)
View Source
const OperationGroupBatchDeleteGroup = "/api.server.prom.strategy.group.Group/BatchDeleteGroup"
View Source
const OperationGroupBatchUpdateGroupStatus = "/api.server.prom.strategy.group.Group/BatchUpdateGroupStatus"
View Source
const OperationGroupCreateGroup = "/api.server.prom.strategy.group.Group/CreateGroup"
View Source
const OperationGroupDeleteGroup = "/api.server.prom.strategy.group.Group/DeleteGroup"
View Source
const OperationGroupExportGroup = "/api.server.prom.strategy.group.Group/ExportGroup"
View Source
const OperationGroupGetGroup = "/api.server.prom.strategy.group.Group/GetGroup"
View Source
const OperationGroupImportGroup = "/api.server.prom.strategy.group.Group/ImportGroup"
View Source
const OperationGroupListAllGroupDetail = "/api.server.prom.strategy.group.Group/ListAllGroupDetail"
View Source
const OperationGroupListAllGroupDetailV2 = "/api.server.prom.strategy.group.Group/ListAllGroupDetailV2"
View Source
const OperationGroupListGroup = "/api.server.prom.strategy.group.Group/ListGroup"
View Source
const OperationGroupSelectGroup = "/api.server.prom.strategy.group.Group/SelectGroup"
View Source
const OperationGroupUpdateGroup = "/api.server.prom.strategy.group.Group/UpdateGroup"

Variables

View Source
var File_server_prom_strategy_group_group_proto protoreflect.FileDescriptor
View Source
var Group_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.server.prom.strategy.group.Group",
	HandlerType: (*GroupServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateGroup",
			Handler:    _Group_CreateGroup_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _Group_UpdateGroup_Handler,
		},
		{
			MethodName: "BatchUpdateGroupStatus",
			Handler:    _Group_BatchUpdateGroupStatus_Handler,
		},
		{
			MethodName: "DeleteGroup",
			Handler:    _Group_DeleteGroup_Handler,
		},
		{
			MethodName: "BatchDeleteGroup",
			Handler:    _Group_BatchDeleteGroup_Handler,
		},
		{
			MethodName: "GetGroup",
			Handler:    _Group_GetGroup_Handler,
		},
		{
			MethodName: "ListGroup",
			Handler:    _Group_ListGroup_Handler,
		},
		{
			MethodName: "ListAllGroupDetail",
			Handler:    _Group_ListAllGroupDetail_Handler,
		},
		{
			MethodName: "ListAllGroupDetailV2",
			Handler:    _Group_ListAllGroupDetailV2_Handler,
		},
		{
			MethodName: "SelectGroup",
			Handler:    _Group_SelectGroup_Handler,
		},
		{
			MethodName: "ImportGroup",
			Handler:    _Group_ImportGroup_Handler,
		},
		{
			MethodName: "ExportGroup",
			Handler:    _Group_ExportGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server/prom/strategy/group/group.proto",
}

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

Functions

func RegisterGroupHTTPServer

func RegisterGroupHTTPServer(s *http.Server, srv GroupHTTPServer)

func RegisterGroupServer

func RegisterGroupServer(s grpc.ServiceRegistrar, srv GroupServer)

Types

type BatchDeleteGroupReply

type BatchDeleteGroupReply struct {

	// 策略组ID列表, 删除成功后返回
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

批量删除策略组响应参数

func (*BatchDeleteGroupReply) Descriptor deprecated

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

Deprecated: Use BatchDeleteGroupReply.ProtoReflect.Descriptor instead.

func (*BatchDeleteGroupReply) GetIds

func (x *BatchDeleteGroupReply) GetIds() []uint32

func (*BatchDeleteGroupReply) ProtoMessage

func (*BatchDeleteGroupReply) ProtoMessage()

func (*BatchDeleteGroupReply) ProtoReflect

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

func (*BatchDeleteGroupReply) Reset

func (x *BatchDeleteGroupReply) Reset()

func (*BatchDeleteGroupReply) String

func (x *BatchDeleteGroupReply) String() string

func (*BatchDeleteGroupReply) Validate

func (m *BatchDeleteGroupReply) Validate() error

Validate checks the field values on BatchDeleteGroupReply 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 (*BatchDeleteGroupReply) ValidateAll

func (m *BatchDeleteGroupReply) ValidateAll() error

ValidateAll checks the field values on BatchDeleteGroupReply 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 BatchDeleteGroupReplyMultiError, or nil if none found.

type BatchDeleteGroupReplyMultiError

type BatchDeleteGroupReplyMultiError []error

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

func (BatchDeleteGroupReplyMultiError) AllErrors

func (m BatchDeleteGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchDeleteGroupReplyMultiError) Error

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

type BatchDeleteGroupReplyValidationError

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

BatchDeleteGroupReplyValidationError is the validation error returned by BatchDeleteGroupReply.Validate if the designated constraints aren't met.

func (BatchDeleteGroupReplyValidationError) Cause

Cause function returns cause value.

func (BatchDeleteGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteGroupReplyValidationError) Field

Field function returns field value.

func (BatchDeleteGroupReplyValidationError) Key

Key function returns key value.

func (BatchDeleteGroupReplyValidationError) Reason

Reason function returns reason value.

type BatchDeleteGroupRequest

type BatchDeleteGroupRequest struct {

	// 策略组ID列表, 最少1个, 最多100个, 不允许为0, 不允许重复
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

批量删除策略组请求参数

func (*BatchDeleteGroupRequest) Descriptor deprecated

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

Deprecated: Use BatchDeleteGroupRequest.ProtoReflect.Descriptor instead.

func (*BatchDeleteGroupRequest) GetIds

func (x *BatchDeleteGroupRequest) GetIds() []uint32

func (*BatchDeleteGroupRequest) ProtoMessage

func (*BatchDeleteGroupRequest) ProtoMessage()

func (*BatchDeleteGroupRequest) ProtoReflect

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

func (*BatchDeleteGroupRequest) Reset

func (x *BatchDeleteGroupRequest) Reset()

func (*BatchDeleteGroupRequest) String

func (x *BatchDeleteGroupRequest) String() string

func (*BatchDeleteGroupRequest) Validate

func (m *BatchDeleteGroupRequest) Validate() error

Validate checks the field values on BatchDeleteGroupRequest 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 (*BatchDeleteGroupRequest) ValidateAll

func (m *BatchDeleteGroupRequest) ValidateAll() error

ValidateAll checks the field values on BatchDeleteGroupRequest 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 BatchDeleteGroupRequestMultiError, or nil if none found.

type BatchDeleteGroupRequestMultiError

type BatchDeleteGroupRequestMultiError []error

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

func (BatchDeleteGroupRequestMultiError) AllErrors

func (m BatchDeleteGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchDeleteGroupRequestMultiError) Error

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

type BatchDeleteGroupRequestValidationError

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

BatchDeleteGroupRequestValidationError is the validation error returned by BatchDeleteGroupRequest.Validate if the designated constraints aren't met.

func (BatchDeleteGroupRequestValidationError) Cause

Cause function returns cause value.

func (BatchDeleteGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteGroupRequestValidationError) Field

Field function returns field value.

func (BatchDeleteGroupRequestValidationError) Key

Key function returns key value.

func (BatchDeleteGroupRequestValidationError) Reason

Reason function returns reason value.

type BatchUpdateGroupStatusReply

type BatchUpdateGroupStatusReply struct {

	// 策略组ID列表, 更新成功后返回
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

BatchUpdateGroupStatusReply 批量更新策略组状态回复

func (*BatchUpdateGroupStatusReply) Descriptor deprecated

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

Deprecated: Use BatchUpdateGroupStatusReply.ProtoReflect.Descriptor instead.

func (*BatchUpdateGroupStatusReply) GetIds

func (x *BatchUpdateGroupStatusReply) GetIds() []uint32

func (*BatchUpdateGroupStatusReply) ProtoMessage

func (*BatchUpdateGroupStatusReply) ProtoMessage()

func (*BatchUpdateGroupStatusReply) ProtoReflect

func (*BatchUpdateGroupStatusReply) Reset

func (x *BatchUpdateGroupStatusReply) Reset()

func (*BatchUpdateGroupStatusReply) String

func (x *BatchUpdateGroupStatusReply) String() string

func (*BatchUpdateGroupStatusReply) Validate

func (m *BatchUpdateGroupStatusReply) Validate() error

Validate checks the field values on BatchUpdateGroupStatusReply 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 (*BatchUpdateGroupStatusReply) ValidateAll

func (m *BatchUpdateGroupStatusReply) ValidateAll() error

ValidateAll checks the field values on BatchUpdateGroupStatusReply 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 BatchUpdateGroupStatusReplyMultiError, or nil if none found.

type BatchUpdateGroupStatusReplyMultiError

type BatchUpdateGroupStatusReplyMultiError []error

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

func (BatchUpdateGroupStatusReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BatchUpdateGroupStatusReplyMultiError) Error

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

type BatchUpdateGroupStatusReplyValidationError

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

BatchUpdateGroupStatusReplyValidationError is the validation error returned by BatchUpdateGroupStatusReply.Validate if the designated constraints aren't met.

func (BatchUpdateGroupStatusReplyValidationError) Cause

Cause function returns cause value.

func (BatchUpdateGroupStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (BatchUpdateGroupStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (BatchUpdateGroupStatusReplyValidationError) Field

Field function returns field value.

func (BatchUpdateGroupStatusReplyValidationError) Key

Key function returns key value.

func (BatchUpdateGroupStatusReplyValidationError) Reason

Reason function returns reason value.

type BatchUpdateGroupStatusRequest

type BatchUpdateGroupStatusRequest struct {

	// 策略组ID列表, 最少1个, 最多100个, 不允许为0, 不允许重复
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// 策略组状态
	Status api.Status `protobuf:"varint,2,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

批量更新策略组状态请求

func (*BatchUpdateGroupStatusRequest) Descriptor deprecated

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

Deprecated: Use BatchUpdateGroupStatusRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdateGroupStatusRequest) GetIds

func (x *BatchUpdateGroupStatusRequest) GetIds() []uint32

func (*BatchUpdateGroupStatusRequest) GetStatus

func (x *BatchUpdateGroupStatusRequest) GetStatus() api.Status

func (*BatchUpdateGroupStatusRequest) ProtoMessage

func (*BatchUpdateGroupStatusRequest) ProtoMessage()

func (*BatchUpdateGroupStatusRequest) ProtoReflect

func (*BatchUpdateGroupStatusRequest) Reset

func (x *BatchUpdateGroupStatusRequest) Reset()

func (*BatchUpdateGroupStatusRequest) String

func (*BatchUpdateGroupStatusRequest) Validate

func (m *BatchUpdateGroupStatusRequest) Validate() error

Validate checks the field values on BatchUpdateGroupStatusRequest 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 (*BatchUpdateGroupStatusRequest) ValidateAll

func (m *BatchUpdateGroupStatusRequest) ValidateAll() error

ValidateAll checks the field values on BatchUpdateGroupStatusRequest 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 BatchUpdateGroupStatusRequestMultiError, or nil if none found.

type BatchUpdateGroupStatusRequestMultiError

type BatchUpdateGroupStatusRequestMultiError []error

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

func (BatchUpdateGroupStatusRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BatchUpdateGroupStatusRequestMultiError) Error

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

type BatchUpdateGroupStatusRequestValidationError

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

BatchUpdateGroupStatusRequestValidationError is the validation error returned by BatchUpdateGroupStatusRequest.Validate if the designated constraints aren't met.

func (BatchUpdateGroupStatusRequestValidationError) Cause

Cause function returns cause value.

func (BatchUpdateGroupStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchUpdateGroupStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchUpdateGroupStatusRequestValidationError) Field

Field function returns field value.

func (BatchUpdateGroupStatusRequestValidationError) Key

Key function returns key value.

func (BatchUpdateGroupStatusRequestValidationError) Reason

Reason function returns reason value.

type CreateGroupReply

type CreateGroupReply struct {

	// 策略组ID, 创建成功后返回
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

创建策略组响应参数

func (*CreateGroupReply) Descriptor deprecated

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

Deprecated: Use CreateGroupReply.ProtoReflect.Descriptor instead.

func (*CreateGroupReply) GetId

func (x *CreateGroupReply) GetId() uint32

func (*CreateGroupReply) ProtoMessage

func (*CreateGroupReply) ProtoMessage()

func (*CreateGroupReply) ProtoReflect

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

func (*CreateGroupReply) Reset

func (x *CreateGroupReply) Reset()

func (*CreateGroupReply) String

func (x *CreateGroupReply) String() string

func (*CreateGroupReply) Validate

func (m *CreateGroupReply) Validate() error

Validate checks the field values on CreateGroupReply 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 (*CreateGroupReply) ValidateAll

func (m *CreateGroupReply) ValidateAll() error

ValidateAll checks the field values on CreateGroupReply 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 CreateGroupReplyMultiError, or nil if none found.

type CreateGroupReplyMultiError

type CreateGroupReplyMultiError []error

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

func (CreateGroupReplyMultiError) AllErrors

func (m CreateGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateGroupReplyMultiError) Error

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

type CreateGroupReplyValidationError

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

CreateGroupReplyValidationError is the validation error returned by CreateGroupReply.Validate if the designated constraints aren't met.

func (CreateGroupReplyValidationError) Cause

Cause function returns cause value.

func (CreateGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateGroupReplyValidationError) Field

Field function returns field value.

func (CreateGroupReplyValidationError) Key

Key function returns key value.

func (CreateGroupReplyValidationError) Reason

Reason function returns reason value.

type CreateGroupRequest

type CreateGroupRequest struct {

	// 策略组名称, 长度1-32, 字母数字下划线(^[a-zA-Z0-9_]+$)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 策略组分类的ID, 对应字典表ID, 不允许为0
	CategoryIds []uint32 `protobuf:"varint,2,rep,packed,name=categoryIds,proto3" json:"categoryIds,omitempty"`
	// 策略组备注, 长度0-255
	Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
	// contains filtered or unexported fields
}

创建策略组请求参数

func (*CreateGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateGroupRequest) GetCategoryIds

func (x *CreateGroupRequest) GetCategoryIds() []uint32

func (*CreateGroupRequest) GetName

func (x *CreateGroupRequest) GetName() string

func (*CreateGroupRequest) GetRemark

func (x *CreateGroupRequest) GetRemark() string

func (*CreateGroupRequest) ProtoMessage

func (*CreateGroupRequest) ProtoMessage()

func (*CreateGroupRequest) ProtoReflect

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

func (*CreateGroupRequest) Reset

func (x *CreateGroupRequest) Reset()

func (*CreateGroupRequest) String

func (x *CreateGroupRequest) String() string

func (*CreateGroupRequest) Validate

func (m *CreateGroupRequest) Validate() error

Validate checks the field values on CreateGroupRequest 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 (*CreateGroupRequest) ValidateAll

func (m *CreateGroupRequest) ValidateAll() error

ValidateAll checks the field values on CreateGroupRequest 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 CreateGroupRequestMultiError, or nil if none found.

type CreateGroupRequestMultiError

type CreateGroupRequestMultiError []error

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

func (CreateGroupRequestMultiError) AllErrors

func (m CreateGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateGroupRequestMultiError) Error

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

type CreateGroupRequestValidationError

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

CreateGroupRequestValidationError is the validation error returned by CreateGroupRequest.Validate if the designated constraints aren't met.

func (CreateGroupRequestValidationError) Cause

Cause function returns cause value.

func (CreateGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateGroupRequestValidationError) Field

Field function returns field value.

func (CreateGroupRequestValidationError) Key

Key function returns key value.

func (CreateGroupRequestValidationError) Reason

Reason function returns reason value.

type DeleteGroupReply

type DeleteGroupReply struct {

	// 策略组ID, 删除成功后返回
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除策略组响应参数

func (*DeleteGroupReply) Descriptor deprecated

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

Deprecated: Use DeleteGroupReply.ProtoReflect.Descriptor instead.

func (*DeleteGroupReply) GetId

func (x *DeleteGroupReply) GetId() uint32

func (*DeleteGroupReply) ProtoMessage

func (*DeleteGroupReply) ProtoMessage()

func (*DeleteGroupReply) ProtoReflect

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

func (*DeleteGroupReply) Reset

func (x *DeleteGroupReply) Reset()

func (*DeleteGroupReply) String

func (x *DeleteGroupReply) String() string

func (*DeleteGroupReply) Validate

func (m *DeleteGroupReply) Validate() error

Validate checks the field values on DeleteGroupReply 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 (*DeleteGroupReply) ValidateAll

func (m *DeleteGroupReply) ValidateAll() error

ValidateAll checks the field values on DeleteGroupReply 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 DeleteGroupReplyMultiError, or nil if none found.

type DeleteGroupReplyMultiError

type DeleteGroupReplyMultiError []error

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

func (DeleteGroupReplyMultiError) AllErrors

func (m DeleteGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteGroupReplyMultiError) Error

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

type DeleteGroupReplyValidationError

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

DeleteGroupReplyValidationError is the validation error returned by DeleteGroupReply.Validate if the designated constraints aren't met.

func (DeleteGroupReplyValidationError) Cause

Cause function returns cause value.

func (DeleteGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteGroupReplyValidationError) Field

Field function returns field value.

func (DeleteGroupReplyValidationError) Key

Key function returns key value.

func (DeleteGroupReplyValidationError) Reason

Reason function returns reason value.

type DeleteGroupRequest

type DeleteGroupRequest struct {

	// 策略组ID, 不允许为0
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

删除策略组请求参数

func (*DeleteGroupRequest) Descriptor deprecated

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

Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteGroupRequest) GetId

func (x *DeleteGroupRequest) GetId() uint32

func (*DeleteGroupRequest) ProtoMessage

func (*DeleteGroupRequest) ProtoMessage()

func (*DeleteGroupRequest) ProtoReflect

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

func (*DeleteGroupRequest) Reset

func (x *DeleteGroupRequest) Reset()

func (*DeleteGroupRequest) String

func (x *DeleteGroupRequest) String() string

func (*DeleteGroupRequest) Validate

func (m *DeleteGroupRequest) Validate() error

Validate checks the field values on DeleteGroupRequest 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 (*DeleteGroupRequest) ValidateAll

func (m *DeleteGroupRequest) ValidateAll() error

ValidateAll checks the field values on DeleteGroupRequest 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 DeleteGroupRequestMultiError, or nil if none found.

type DeleteGroupRequestMultiError

type DeleteGroupRequestMultiError []error

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

func (DeleteGroupRequestMultiError) AllErrors

func (m DeleteGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteGroupRequestMultiError) Error

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

type DeleteGroupRequestValidationError

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

DeleteGroupRequestValidationError is the validation error returned by DeleteGroupRequest.Validate if the designated constraints aren't met.

func (DeleteGroupRequestValidationError) Cause

Cause function returns cause value.

func (DeleteGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteGroupRequestValidationError) Field

Field function returns field value.

func (DeleteGroupRequestValidationError) Key

Key function returns key value.

func (DeleteGroupRequestValidationError) Reason

Reason function returns reason value.

type ExportGroupReply

type ExportGroupReply struct {

	// 策略列表
	Groups []*api.PromRuleGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

导出策略组响应参数

func (*ExportGroupReply) Descriptor deprecated

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

Deprecated: Use ExportGroupReply.ProtoReflect.Descriptor instead.

func (*ExportGroupReply) GetGroups

func (x *ExportGroupReply) GetGroups() []*api.PromRuleGroup

func (*ExportGroupReply) ProtoMessage

func (*ExportGroupReply) ProtoMessage()

func (*ExportGroupReply) ProtoReflect

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

func (*ExportGroupReply) Reset

func (x *ExportGroupReply) Reset()

func (*ExportGroupReply) String

func (x *ExportGroupReply) String() string

func (*ExportGroupReply) Validate

func (m *ExportGroupReply) Validate() error

Validate checks the field values on ExportGroupReply 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 (*ExportGroupReply) ValidateAll

func (m *ExportGroupReply) ValidateAll() error

ValidateAll checks the field values on ExportGroupReply 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 ExportGroupReplyMultiError, or nil if none found.

type ExportGroupReplyMultiError

type ExportGroupReplyMultiError []error

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

func (ExportGroupReplyMultiError) AllErrors

func (m ExportGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExportGroupReplyMultiError) Error

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

type ExportGroupReplyValidationError

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

ExportGroupReplyValidationError is the validation error returned by ExportGroupReply.Validate if the designated constraints aren't met.

func (ExportGroupReplyValidationError) Cause

Cause function returns cause value.

func (ExportGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (ExportGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (ExportGroupReplyValidationError) Field

Field function returns field value.

func (ExportGroupReplyValidationError) Key

Key function returns key value.

func (ExportGroupReplyValidationError) Reason

Reason function returns reason value.

type ExportGroupRequest

type ExportGroupRequest struct {

	// 策略组ID列表, 最少1个, 最多100个, 不允许为0, 不允许重复
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

导出策略组请求参数

func (*ExportGroupRequest) Descriptor deprecated

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

Deprecated: Use ExportGroupRequest.ProtoReflect.Descriptor instead.

func (*ExportGroupRequest) GetIds

func (x *ExportGroupRequest) GetIds() []uint32

func (*ExportGroupRequest) ProtoMessage

func (*ExportGroupRequest) ProtoMessage()

func (*ExportGroupRequest) ProtoReflect

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

func (*ExportGroupRequest) Reset

func (x *ExportGroupRequest) Reset()

func (*ExportGroupRequest) String

func (x *ExportGroupRequest) String() string

func (*ExportGroupRequest) Validate

func (m *ExportGroupRequest) Validate() error

Validate checks the field values on ExportGroupRequest 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 (*ExportGroupRequest) ValidateAll

func (m *ExportGroupRequest) ValidateAll() error

ValidateAll checks the field values on ExportGroupRequest 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 ExportGroupRequestMultiError, or nil if none found.

type ExportGroupRequestMultiError

type ExportGroupRequestMultiError []error

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

func (ExportGroupRequestMultiError) AllErrors

func (m ExportGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExportGroupRequestMultiError) Error

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

type ExportGroupRequestValidationError

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

ExportGroupRequestValidationError is the validation error returned by ExportGroupRequest.Validate if the designated constraints aren't met.

func (ExportGroupRequestValidationError) Cause

Cause function returns cause value.

func (ExportGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (ExportGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (ExportGroupRequestValidationError) Field

Field function returns field value.

func (ExportGroupRequestValidationError) Key

Key function returns key value.

func (ExportGroupRequestValidationError) Reason

Reason function returns reason value.

type GetGroupReply

type GetGroupReply struct {

	// 策略组信息
	Detail *api.PromGroup `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

获取策略组响应参数

func (*GetGroupReply) Descriptor deprecated

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

Deprecated: Use GetGroupReply.ProtoReflect.Descriptor instead.

func (*GetGroupReply) GetDetail

func (x *GetGroupReply) GetDetail() *api.PromGroup

func (*GetGroupReply) ProtoMessage

func (*GetGroupReply) ProtoMessage()

func (*GetGroupReply) ProtoReflect

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

func (*GetGroupReply) Reset

func (x *GetGroupReply) Reset()

func (*GetGroupReply) String

func (x *GetGroupReply) String() string

func (*GetGroupReply) Validate

func (m *GetGroupReply) Validate() error

Validate checks the field values on GetGroupReply 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 (*GetGroupReply) ValidateAll

func (m *GetGroupReply) ValidateAll() error

ValidateAll checks the field values on GetGroupReply 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 GetGroupReplyMultiError, or nil if none found.

type GetGroupReplyMultiError

type GetGroupReplyMultiError []error

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

func (GetGroupReplyMultiError) AllErrors

func (m GetGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetGroupReplyMultiError) Error

func (m GetGroupReplyMultiError) Error() string

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

type GetGroupReplyValidationError

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

GetGroupReplyValidationError is the validation error returned by GetGroupReply.Validate if the designated constraints aren't met.

func (GetGroupReplyValidationError) Cause

Cause function returns cause value.

func (GetGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (GetGroupReplyValidationError) ErrorName

func (e GetGroupReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetGroupReplyValidationError) Field

Field function returns field value.

func (GetGroupReplyValidationError) Key

Key function returns key value.

func (GetGroupReplyValidationError) Reason

Reason function returns reason value.

type GetGroupRequest

type GetGroupRequest struct {

	// 策略组ID, 不允许为0, 路径参数
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

获取策略组请求参数

func (*GetGroupRequest) Descriptor deprecated

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

Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.

func (*GetGroupRequest) GetId

func (x *GetGroupRequest) GetId() uint32

func (*GetGroupRequest) ProtoMessage

func (*GetGroupRequest) ProtoMessage()

func (*GetGroupRequest) ProtoReflect

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

func (*GetGroupRequest) Reset

func (x *GetGroupRequest) Reset()

func (*GetGroupRequest) String

func (x *GetGroupRequest) String() string

func (*GetGroupRequest) Validate

func (m *GetGroupRequest) Validate() error

Validate checks the field values on GetGroupRequest 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 (*GetGroupRequest) ValidateAll

func (m *GetGroupRequest) ValidateAll() error

ValidateAll checks the field values on GetGroupRequest 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 GetGroupRequestMultiError, or nil if none found.

type GetGroupRequestMultiError

type GetGroupRequestMultiError []error

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

func (GetGroupRequestMultiError) AllErrors

func (m GetGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetGroupRequestMultiError) Error

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

type GetGroupRequestValidationError

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

GetGroupRequestValidationError is the validation error returned by GetGroupRequest.Validate if the designated constraints aren't met.

func (GetGroupRequestValidationError) Cause

Cause function returns cause value.

func (GetGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (GetGroupRequestValidationError) ErrorName

func (e GetGroupRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetGroupRequestValidationError) Field

Field function returns field value.

func (GetGroupRequestValidationError) Key

Key function returns key value.

func (GetGroupRequestValidationError) Reason

Reason function returns reason value.

type GroupClient

type GroupClient interface {
	// 创建策略组
	CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*CreateGroupReply, error)
	// 更新策略组
	UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*UpdateGroupReply, error)
	// 批量更新策略组状态
	BatchUpdateGroupStatus(ctx context.Context, in *BatchUpdateGroupStatusRequest, opts ...grpc.CallOption) (*BatchUpdateGroupStatusReply, error)
	// 删除策略组
	DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupReply, error)
	// 批量删除策略组
	BatchDeleteGroup(ctx context.Context, in *BatchDeleteGroupRequest, opts ...grpc.CallOption) (*BatchDeleteGroupReply, error)
	// GetGroup 获取策略组
	GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupReply, error)
	// 获取策略组列表
	ListGroup(ctx context.Context, in *ListGroupRequest, opts ...grpc.CallOption) (*ListGroupReply, error)
	// 获取策略组列表明细
	ListAllGroupDetail(ctx context.Context, in *ListAllGroupDetailRequest, opts ...grpc.CallOption) (*ListAllGroupDetailReply, error)
	// 获取策略组列表明细V2
	ListAllGroupDetailV2(ctx context.Context, in *ListAllGroupDetailV2Request, opts ...grpc.CallOption) (*ListAllGroupDetailV2Reply, error)
	// 获取策略组下拉列表
	SelectGroup(ctx context.Context, in *SelectGroupRequest, opts ...grpc.CallOption) (*SelectGroupReply, error)
	// 导入策略组
	ImportGroup(ctx context.Context, in *ImportGroupRequest, opts ...grpc.CallOption) (*ImportGroupReply, error)
	// 导出策略组
	ExportGroup(ctx context.Context, in *ExportGroupRequest, opts ...grpc.CallOption) (*ExportGroupReply, error)
}

GroupClient is the client API for Group 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 NewGroupClient

func NewGroupClient(cc grpc.ClientConnInterface) GroupClient

type GroupHTTPClient

type GroupHTTPClient interface {
	BatchDeleteGroup(ctx context.Context, req *BatchDeleteGroupRequest, opts ...http.CallOption) (rsp *BatchDeleteGroupReply, err error)
	BatchUpdateGroupStatus(ctx context.Context, req *BatchUpdateGroupStatusRequest, opts ...http.CallOption) (rsp *BatchUpdateGroupStatusReply, err error)
	CreateGroup(ctx context.Context, req *CreateGroupRequest, opts ...http.CallOption) (rsp *CreateGroupReply, err error)
	DeleteGroup(ctx context.Context, req *DeleteGroupRequest, opts ...http.CallOption) (rsp *DeleteGroupReply, err error)
	ExportGroup(ctx context.Context, req *ExportGroupRequest, opts ...http.CallOption) (rsp *ExportGroupReply, err error)
	GetGroup(ctx context.Context, req *GetGroupRequest, opts ...http.CallOption) (rsp *GetGroupReply, err error)
	ImportGroup(ctx context.Context, req *ImportGroupRequest, opts ...http.CallOption) (rsp *ImportGroupReply, err error)
	ListAllGroupDetail(ctx context.Context, req *ListAllGroupDetailRequest, opts ...http.CallOption) (rsp *ListAllGroupDetailReply, err error)
	ListAllGroupDetailV2(ctx context.Context, req *ListAllGroupDetailV2Request, opts ...http.CallOption) (rsp *ListAllGroupDetailV2Reply, err error)
	ListGroup(ctx context.Context, req *ListGroupRequest, opts ...http.CallOption) (rsp *ListGroupReply, err error)
	SelectGroup(ctx context.Context, req *SelectGroupRequest, opts ...http.CallOption) (rsp *SelectGroupReply, err error)
	UpdateGroup(ctx context.Context, req *UpdateGroupRequest, opts ...http.CallOption) (rsp *UpdateGroupReply, err error)
}

func NewGroupHTTPClient

func NewGroupHTTPClient(client *http.Client) GroupHTTPClient

type GroupHTTPClientImpl

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

func (*GroupHTTPClientImpl) BatchDeleteGroup

func (*GroupHTTPClientImpl) BatchUpdateGroupStatus

func (*GroupHTTPClientImpl) CreateGroup

func (*GroupHTTPClientImpl) DeleteGroup

func (*GroupHTTPClientImpl) ExportGroup

func (*GroupHTTPClientImpl) GetGroup

func (*GroupHTTPClientImpl) ImportGroup

func (*GroupHTTPClientImpl) ListAllGroupDetail

func (*GroupHTTPClientImpl) ListAllGroupDetailV2 added in v0.0.16

func (*GroupHTTPClientImpl) ListGroup

func (*GroupHTTPClientImpl) SelectGroup

func (*GroupHTTPClientImpl) UpdateGroup

type GroupHTTPServer

type GroupHTTPServer interface {
	// BatchDeleteGroup 批量删除策略组
	BatchDeleteGroup(context.Context, *BatchDeleteGroupRequest) (*BatchDeleteGroupReply, error)
	// BatchUpdateGroupStatus 批量更新策略组状态
	BatchUpdateGroupStatus(context.Context, *BatchUpdateGroupStatusRequest) (*BatchUpdateGroupStatusReply, error)
	// CreateGroup 创建策略组
	CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupReply, error)
	// DeleteGroup 删除策略组
	DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupReply, error)
	// ExportGroup 导出策略组
	ExportGroup(context.Context, *ExportGroupRequest) (*ExportGroupReply, error)
	// GetGroup GetGroup 获取策略组
	GetGroup(context.Context, *GetGroupRequest) (*GetGroupReply, error)
	// ImportGroup 导入策略组
	ImportGroup(context.Context, *ImportGroupRequest) (*ImportGroupReply, error)
	// ListAllGroupDetail 获取策略组列表明细
	ListAllGroupDetail(context.Context, *ListAllGroupDetailRequest) (*ListAllGroupDetailReply, error)
	// ListAllGroupDetailV2 获取策略组列表明细V2
	ListAllGroupDetailV2(context.Context, *ListAllGroupDetailV2Request) (*ListAllGroupDetailV2Reply, error)
	// ListGroup 获取策略组列表
	ListGroup(context.Context, *ListGroupRequest) (*ListGroupReply, error)
	// SelectGroup 获取策略组下拉列表
	SelectGroup(context.Context, *SelectGroupRequest) (*SelectGroupReply, error)
	// UpdateGroup 更新策略组
	UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupReply, error)
}

type GroupServer

type GroupServer interface {
	// 创建策略组
	CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupReply, error)
	// 更新策略组
	UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupReply, error)
	// 批量更新策略组状态
	BatchUpdateGroupStatus(context.Context, *BatchUpdateGroupStatusRequest) (*BatchUpdateGroupStatusReply, error)
	// 删除策略组
	DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupReply, error)
	// 批量删除策略组
	BatchDeleteGroup(context.Context, *BatchDeleteGroupRequest) (*BatchDeleteGroupReply, error)
	// GetGroup 获取策略组
	GetGroup(context.Context, *GetGroupRequest) (*GetGroupReply, error)
	// 获取策略组列表
	ListGroup(context.Context, *ListGroupRequest) (*ListGroupReply, error)
	// 获取策略组列表明细
	ListAllGroupDetail(context.Context, *ListAllGroupDetailRequest) (*ListAllGroupDetailReply, error)
	// 获取策略组列表明细V2
	ListAllGroupDetailV2(context.Context, *ListAllGroupDetailV2Request) (*ListAllGroupDetailV2Reply, error)
	// 获取策略组下拉列表
	SelectGroup(context.Context, *SelectGroupRequest) (*SelectGroupReply, error)
	// 导入策略组
	ImportGroup(context.Context, *ImportGroupRequest) (*ImportGroupReply, error)
	// 导出策略组
	ExportGroup(context.Context, *ExportGroupRequest) (*ExportGroupReply, error)
	// contains filtered or unexported methods
}

GroupServer is the server API for Group service. All implementations must embed UnimplementedGroupServer for forward compatibility

type ImportGroupReply

type ImportGroupReply struct {

	// 导入成功的策略组ID列表
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

导入策略组响应参数

func (*ImportGroupReply) Descriptor deprecated

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

Deprecated: Use ImportGroupReply.ProtoReflect.Descriptor instead.

func (*ImportGroupReply) GetIds

func (x *ImportGroupReply) GetIds() []uint32

func (*ImportGroupReply) ProtoMessage

func (*ImportGroupReply) ProtoMessage()

func (*ImportGroupReply) ProtoReflect

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

func (*ImportGroupReply) Reset

func (x *ImportGroupReply) Reset()

func (*ImportGroupReply) String

func (x *ImportGroupReply) String() string

func (*ImportGroupReply) Validate

func (m *ImportGroupReply) Validate() error

Validate checks the field values on ImportGroupReply 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 (*ImportGroupReply) ValidateAll

func (m *ImportGroupReply) ValidateAll() error

ValidateAll checks the field values on ImportGroupReply 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 ImportGroupReplyMultiError, or nil if none found.

type ImportGroupReplyMultiError

type ImportGroupReplyMultiError []error

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

func (ImportGroupReplyMultiError) AllErrors

func (m ImportGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ImportGroupReplyMultiError) Error

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

type ImportGroupReplyValidationError

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

ImportGroupReplyValidationError is the validation error returned by ImportGroupReply.Validate if the designated constraints aren't met.

func (ImportGroupReplyValidationError) Cause

Cause function returns cause value.

func (ImportGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (ImportGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (ImportGroupReplyValidationError) Field

Field function returns field value.

func (ImportGroupReplyValidationError) Key

Key function returns key value.

func (ImportGroupReplyValidationError) Reason

Reason function returns reason value.

type ImportGroupRequest

type ImportGroupRequest struct {

	// 规则组, 最少1个, 最多100个, 不允许重复
	Groups []*api.PromRuleGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// 数据源
	DatasourceId uint32 `protobuf:"varint,2,opt,name=datasourceId,proto3" json:"datasourceId,omitempty"`
	// 默认告警等级
	DefaultLevel uint32 `protobuf:"varint,3,opt,name=defaultLevel,proto3" json:"defaultLevel,omitempty"`
	// 默认告警页面
	DefaultAlarmPageIds []uint32 `protobuf:"varint,4,rep,packed,name=defaultAlarmPageIds,proto3" json:"defaultAlarmPageIds,omitempty"`
	// 默认业务类型
	DefaultCategoryIds []uint32 `protobuf:"varint,5,rep,packed,name=defaultCategoryIds,proto3" json:"defaultCategoryIds,omitempty"`
	// 告警通知对象
	DefaultAlarmNotifyIds []uint32 `protobuf:"varint,6,rep,packed,name=defaultAlarmNotifyIds,proto3" json:"defaultAlarmNotifyIds,omitempty"`
	// contains filtered or unexported fields
}

导入策略组请求参数

func (*ImportGroupRequest) Descriptor deprecated

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

Deprecated: Use ImportGroupRequest.ProtoReflect.Descriptor instead.

func (*ImportGroupRequest) GetDatasourceId

func (x *ImportGroupRequest) GetDatasourceId() uint32

func (*ImportGroupRequest) GetDefaultAlarmNotifyIds

func (x *ImportGroupRequest) GetDefaultAlarmNotifyIds() []uint32

func (*ImportGroupRequest) GetDefaultAlarmPageIds

func (x *ImportGroupRequest) GetDefaultAlarmPageIds() []uint32

func (*ImportGroupRequest) GetDefaultCategoryIds

func (x *ImportGroupRequest) GetDefaultCategoryIds() []uint32

func (*ImportGroupRequest) GetDefaultLevel

func (x *ImportGroupRequest) GetDefaultLevel() uint32

func (*ImportGroupRequest) GetGroups

func (x *ImportGroupRequest) GetGroups() []*api.PromRuleGroup

func (*ImportGroupRequest) ProtoMessage

func (*ImportGroupRequest) ProtoMessage()

func (*ImportGroupRequest) ProtoReflect

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

func (*ImportGroupRequest) Reset

func (x *ImportGroupRequest) Reset()

func (*ImportGroupRequest) String

func (x *ImportGroupRequest) String() string

func (*ImportGroupRequest) Validate

func (m *ImportGroupRequest) Validate() error

Validate checks the field values on ImportGroupRequest 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 (*ImportGroupRequest) ValidateAll

func (m *ImportGroupRequest) ValidateAll() error

ValidateAll checks the field values on ImportGroupRequest 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 ImportGroupRequestMultiError, or nil if none found.

type ImportGroupRequestMultiError

type ImportGroupRequestMultiError []error

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

func (ImportGroupRequestMultiError) AllErrors

func (m ImportGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ImportGroupRequestMultiError) Error

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

type ImportGroupRequestValidationError

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

ImportGroupRequestValidationError is the validation error returned by ImportGroupRequest.Validate if the designated constraints aren't met.

func (ImportGroupRequestValidationError) Cause

Cause function returns cause value.

func (ImportGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (ImportGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (ImportGroupRequestValidationError) Field

Field function returns field value.

func (ImportGroupRequestValidationError) Key

Key function returns key value.

func (ImportGroupRequestValidationError) Reason

Reason function returns reason value.

type ListAllGroupDetailReply

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

func (*ListAllGroupDetailReply) Descriptor deprecated

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

Deprecated: Use ListAllGroupDetailReply.ProtoReflect.Descriptor instead.

func (*ListAllGroupDetailReply) GetGroupList

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

func (*ListAllGroupDetailReply) ProtoMessage

func (*ListAllGroupDetailReply) ProtoMessage()

func (*ListAllGroupDetailReply) ProtoReflect

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

func (*ListAllGroupDetailReply) Reset

func (x *ListAllGroupDetailReply) Reset()

func (*ListAllGroupDetailReply) String

func (x *ListAllGroupDetailReply) String() string

func (*ListAllGroupDetailReply) Validate

func (m *ListAllGroupDetailReply) Validate() error

Validate checks the field values on ListAllGroupDetailReply 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 (*ListAllGroupDetailReply) ValidateAll

func (m *ListAllGroupDetailReply) ValidateAll() error

ValidateAll checks the field values on ListAllGroupDetailReply 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 ListAllGroupDetailReplyMultiError, or nil if none found.

type ListAllGroupDetailReplyMultiError

type ListAllGroupDetailReplyMultiError []error

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

func (ListAllGroupDetailReplyMultiError) AllErrors

func (m ListAllGroupDetailReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAllGroupDetailReplyMultiError) Error

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

type ListAllGroupDetailReplyValidationError

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

ListAllGroupDetailReplyValidationError is the validation error returned by ListAllGroupDetailReply.Validate if the designated constraints aren't met.

func (ListAllGroupDetailReplyValidationError) Cause

Cause function returns cause value.

func (ListAllGroupDetailReplyValidationError) Error

Error satisfies the builtin error interface

func (ListAllGroupDetailReplyValidationError) ErrorName

ErrorName returns error name.

func (ListAllGroupDetailReplyValidationError) Field

Field function returns field value.

func (ListAllGroupDetailReplyValidationError) Key

Key function returns key value.

func (ListAllGroupDetailReplyValidationError) Reason

Reason function returns reason value.

type ListAllGroupDetailRequest

type ListAllGroupDetailRequest struct {
	GroupIds []uint32 `protobuf:"varint,1,rep,packed,name=groupIds,proto3" json:"groupIds,omitempty"`
	// contains filtered or unexported fields
}

获取策略组列表明细请求参数

func (*ListAllGroupDetailRequest) Descriptor deprecated

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

Deprecated: Use ListAllGroupDetailRequest.ProtoReflect.Descriptor instead.

func (*ListAllGroupDetailRequest) GetGroupIds

func (x *ListAllGroupDetailRequest) GetGroupIds() []uint32

func (*ListAllGroupDetailRequest) ProtoMessage

func (*ListAllGroupDetailRequest) ProtoMessage()

func (*ListAllGroupDetailRequest) ProtoReflect

func (*ListAllGroupDetailRequest) Reset

func (x *ListAllGroupDetailRequest) Reset()

func (*ListAllGroupDetailRequest) String

func (x *ListAllGroupDetailRequest) String() string

func (*ListAllGroupDetailRequest) Validate

func (m *ListAllGroupDetailRequest) Validate() error

Validate checks the field values on ListAllGroupDetailRequest 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 (*ListAllGroupDetailRequest) ValidateAll

func (m *ListAllGroupDetailRequest) ValidateAll() error

ValidateAll checks the field values on ListAllGroupDetailRequest 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 ListAllGroupDetailRequestMultiError, or nil if none found.

type ListAllGroupDetailRequestMultiError

type ListAllGroupDetailRequestMultiError []error

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

func (ListAllGroupDetailRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListAllGroupDetailRequestMultiError) Error

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

type ListAllGroupDetailRequestValidationError

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

ListAllGroupDetailRequestValidationError is the validation error returned by ListAllGroupDetailRequest.Validate if the designated constraints aren't met.

func (ListAllGroupDetailRequestValidationError) Cause

Cause function returns cause value.

func (ListAllGroupDetailRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAllGroupDetailRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAllGroupDetailRequestValidationError) Field

Field function returns field value.

func (ListAllGroupDetailRequestValidationError) Key

Key function returns key value.

func (ListAllGroupDetailRequestValidationError) Reason

Reason function returns reason value.

type ListAllGroupDetailV2Reply added in v0.0.16

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

func (*ListAllGroupDetailV2Reply) Descriptor deprecated added in v0.0.16

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

Deprecated: Use ListAllGroupDetailV2Reply.ProtoReflect.Descriptor instead.

func (*ListAllGroupDetailV2Reply) GetGroupList added in v0.0.16

func (x *ListAllGroupDetailV2Reply) GetGroupList() []*api.EvaluateGroup

func (*ListAllGroupDetailV2Reply) ProtoMessage added in v0.0.16

func (*ListAllGroupDetailV2Reply) ProtoMessage()

func (*ListAllGroupDetailV2Reply) ProtoReflect added in v0.0.16

func (*ListAllGroupDetailV2Reply) Reset added in v0.0.16

func (x *ListAllGroupDetailV2Reply) Reset()

func (*ListAllGroupDetailV2Reply) String added in v0.0.16

func (x *ListAllGroupDetailV2Reply) String() string

func (*ListAllGroupDetailV2Reply) Validate added in v0.0.16

func (m *ListAllGroupDetailV2Reply) Validate() error

Validate checks the field values on ListAllGroupDetailV2Reply 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 (*ListAllGroupDetailV2Reply) ValidateAll added in v0.0.16

func (m *ListAllGroupDetailV2Reply) ValidateAll() error

ValidateAll checks the field values on ListAllGroupDetailV2Reply 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 ListAllGroupDetailV2ReplyMultiError, or nil if none found.

type ListAllGroupDetailV2ReplyMultiError added in v0.0.16

type ListAllGroupDetailV2ReplyMultiError []error

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

func (ListAllGroupDetailV2ReplyMultiError) AllErrors added in v0.0.16

AllErrors returns a list of validation violation errors.

func (ListAllGroupDetailV2ReplyMultiError) Error added in v0.0.16

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

type ListAllGroupDetailV2ReplyValidationError added in v0.0.16

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

ListAllGroupDetailV2ReplyValidationError is the validation error returned by ListAllGroupDetailV2Reply.Validate if the designated constraints aren't met.

func (ListAllGroupDetailV2ReplyValidationError) Cause added in v0.0.16

Cause function returns cause value.

func (ListAllGroupDetailV2ReplyValidationError) Error added in v0.0.16

Error satisfies the builtin error interface

func (ListAllGroupDetailV2ReplyValidationError) ErrorName added in v0.0.16

ErrorName returns error name.

func (ListAllGroupDetailV2ReplyValidationError) Field added in v0.0.16

Field function returns field value.

func (ListAllGroupDetailV2ReplyValidationError) Key added in v0.0.16

Key function returns key value.

func (ListAllGroupDetailV2ReplyValidationError) Reason added in v0.0.16

Reason function returns reason value.

type ListAllGroupDetailV2Request added in v0.0.16

type ListAllGroupDetailV2Request struct {
	GroupIds []uint32 `protobuf:"varint,1,rep,packed,name=groupIds,proto3" json:"groupIds,omitempty"`
	// contains filtered or unexported fields
}

获取策略组列表明细V2请求参数

func (*ListAllGroupDetailV2Request) Descriptor deprecated added in v0.0.16

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

Deprecated: Use ListAllGroupDetailV2Request.ProtoReflect.Descriptor instead.

func (*ListAllGroupDetailV2Request) GetGroupIds added in v0.0.16

func (x *ListAllGroupDetailV2Request) GetGroupIds() []uint32

func (*ListAllGroupDetailV2Request) ProtoMessage added in v0.0.16

func (*ListAllGroupDetailV2Request) ProtoMessage()

func (*ListAllGroupDetailV2Request) ProtoReflect added in v0.0.16

func (*ListAllGroupDetailV2Request) Reset added in v0.0.16

func (x *ListAllGroupDetailV2Request) Reset()

func (*ListAllGroupDetailV2Request) String added in v0.0.16

func (x *ListAllGroupDetailV2Request) String() string

func (*ListAllGroupDetailV2Request) Validate added in v0.0.16

func (m *ListAllGroupDetailV2Request) Validate() error

Validate checks the field values on ListAllGroupDetailV2Request 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 (*ListAllGroupDetailV2Request) ValidateAll added in v0.0.16

func (m *ListAllGroupDetailV2Request) ValidateAll() error

ValidateAll checks the field values on ListAllGroupDetailV2Request 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 ListAllGroupDetailV2RequestMultiError, or nil if none found.

type ListAllGroupDetailV2RequestMultiError added in v0.0.16

type ListAllGroupDetailV2RequestMultiError []error

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

func (ListAllGroupDetailV2RequestMultiError) AllErrors added in v0.0.16

AllErrors returns a list of validation violation errors.

func (ListAllGroupDetailV2RequestMultiError) Error added in v0.0.16

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

type ListAllGroupDetailV2RequestValidationError added in v0.0.16

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

ListAllGroupDetailV2RequestValidationError is the validation error returned by ListAllGroupDetailV2Request.Validate if the designated constraints aren't met.

func (ListAllGroupDetailV2RequestValidationError) Cause added in v0.0.16

Cause function returns cause value.

func (ListAllGroupDetailV2RequestValidationError) Error added in v0.0.16

Error satisfies the builtin error interface

func (ListAllGroupDetailV2RequestValidationError) ErrorName added in v0.0.16

ErrorName returns error name.

func (ListAllGroupDetailV2RequestValidationError) Field added in v0.0.16

Field function returns field value.

func (ListAllGroupDetailV2RequestValidationError) Key added in v0.0.16

Key function returns key value.

func (ListAllGroupDetailV2RequestValidationError) Reason added in v0.0.16

Reason function returns reason value.

type ListGroupReply

type ListGroupReply struct {

	// 分页参数
	Page *api.PageReply `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 策略组列表
	List []*api.PromGroup `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取策略组列表响应参数

func (*ListGroupReply) Descriptor deprecated

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

Deprecated: Use ListGroupReply.ProtoReflect.Descriptor instead.

func (*ListGroupReply) GetList

func (x *ListGroupReply) GetList() []*api.PromGroup

func (*ListGroupReply) GetPage

func (x *ListGroupReply) GetPage() *api.PageReply

func (*ListGroupReply) ProtoMessage

func (*ListGroupReply) ProtoMessage()

func (*ListGroupReply) ProtoReflect

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

func (*ListGroupReply) Reset

func (x *ListGroupReply) Reset()

func (*ListGroupReply) String

func (x *ListGroupReply) String() string

func (*ListGroupReply) Validate

func (m *ListGroupReply) Validate() error

Validate checks the field values on ListGroupReply 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 (*ListGroupReply) ValidateAll

func (m *ListGroupReply) ValidateAll() error

ValidateAll checks the field values on ListGroupReply 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 ListGroupReplyMultiError, or nil if none found.

type ListGroupReplyMultiError

type ListGroupReplyMultiError []error

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

func (ListGroupReplyMultiError) AllErrors

func (m ListGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListGroupReplyMultiError) Error

func (m ListGroupReplyMultiError) Error() string

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

type ListGroupReplyValidationError

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

ListGroupReplyValidationError is the validation error returned by ListGroupReply.Validate if the designated constraints aren't met.

func (ListGroupReplyValidationError) Cause

Cause function returns cause value.

func (ListGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (ListGroupReplyValidationError) ErrorName

func (e ListGroupReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListGroupReplyValidationError) Field

Field function returns field value.

func (ListGroupReplyValidationError) Key

Key function returns key value.

func (ListGroupReplyValidationError) Reason

Reason function returns reason value.

type ListGroupRequest

type ListGroupRequest struct {

	// 分页参数, 必填
	Page *api.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 关键字, 长度0-32
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// 分类ID列表, 不允许为0, 不允许重复, 非必填, 取自字典表ID
	CategoryIds []uint32 `protobuf:"varint,3,rep,packed,name=categoryIds,proto3" json:"categoryIds,omitempty"`
	// 策略组状态
	Status api.Status `protobuf:"varint,4,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// 开始时间,unix时间戳
	StartAt uint64 `protobuf:"varint,5,opt,name=startAt,proto3" json:"startAt,omitempty"`
	// 结束时间,unix时间戳
	EndAt uint64 `protobuf:"varint,6,opt,name=endAt,proto3" json:"endAt,omitempty"`
	// id
	Ids []uint32 `protobuf:"varint,7,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

获取策略组列表请求参数

func (*ListGroupRequest) Descriptor deprecated

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

Deprecated: Use ListGroupRequest.ProtoReflect.Descriptor instead.

func (*ListGroupRequest) GetCategoryIds

func (x *ListGroupRequest) GetCategoryIds() []uint32

func (*ListGroupRequest) GetEndAt

func (x *ListGroupRequest) GetEndAt() uint64

func (*ListGroupRequest) GetIds

func (x *ListGroupRequest) GetIds() []uint32

func (*ListGroupRequest) GetKeyword

func (x *ListGroupRequest) GetKeyword() string

func (*ListGroupRequest) GetPage

func (x *ListGroupRequest) GetPage() *api.PageRequest

func (*ListGroupRequest) GetStartAt

func (x *ListGroupRequest) GetStartAt() uint64

func (*ListGroupRequest) GetStatus

func (x *ListGroupRequest) GetStatus() api.Status

func (*ListGroupRequest) ProtoMessage

func (*ListGroupRequest) ProtoMessage()

func (*ListGroupRequest) ProtoReflect

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

func (*ListGroupRequest) Reset

func (x *ListGroupRequest) Reset()

func (*ListGroupRequest) String

func (x *ListGroupRequest) String() string

func (*ListGroupRequest) Validate

func (m *ListGroupRequest) Validate() error

Validate checks the field values on ListGroupRequest 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 (*ListGroupRequest) ValidateAll

func (m *ListGroupRequest) ValidateAll() error

ValidateAll checks the field values on ListGroupRequest 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 ListGroupRequestMultiError, or nil if none found.

type ListGroupRequestMultiError

type ListGroupRequestMultiError []error

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

func (ListGroupRequestMultiError) AllErrors

func (m ListGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListGroupRequestMultiError) Error

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

type ListGroupRequestValidationError

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

ListGroupRequestValidationError is the validation error returned by ListGroupRequest.Validate if the designated constraints aren't met.

func (ListGroupRequestValidationError) Cause

Cause function returns cause value.

func (ListGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (ListGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (ListGroupRequestValidationError) Field

Field function returns field value.

func (ListGroupRequestValidationError) Key

Key function returns key value.

func (ListGroupRequestValidationError) Reason

Reason function returns reason value.

type SelectGroupReply

type SelectGroupReply struct {

	// 分页参数
	Page *api.PageReply `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 策略组列表
	List []*api.PromGroupSelectV1 `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

获取策略组下拉列表响应列表

func (*SelectGroupReply) Descriptor deprecated

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

Deprecated: Use SelectGroupReply.ProtoReflect.Descriptor instead.

func (*SelectGroupReply) GetList

func (x *SelectGroupReply) GetList() []*api.PromGroupSelectV1

func (*SelectGroupReply) GetPage

func (x *SelectGroupReply) GetPage() *api.PageReply

func (*SelectGroupReply) ProtoMessage

func (*SelectGroupReply) ProtoMessage()

func (*SelectGroupReply) ProtoReflect

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

func (*SelectGroupReply) Reset

func (x *SelectGroupReply) Reset()

func (*SelectGroupReply) String

func (x *SelectGroupReply) String() string

func (*SelectGroupReply) Validate

func (m *SelectGroupReply) Validate() error

Validate checks the field values on SelectGroupReply 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 (*SelectGroupReply) ValidateAll

func (m *SelectGroupReply) ValidateAll() error

ValidateAll checks the field values on SelectGroupReply 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 SelectGroupReplyMultiError, or nil if none found.

type SelectGroupReplyMultiError

type SelectGroupReplyMultiError []error

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

func (SelectGroupReplyMultiError) AllErrors

func (m SelectGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectGroupReplyMultiError) Error

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

type SelectGroupReplyValidationError

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

SelectGroupReplyValidationError is the validation error returned by SelectGroupReply.Validate if the designated constraints aren't met.

func (SelectGroupReplyValidationError) Cause

Cause function returns cause value.

func (SelectGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (SelectGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (SelectGroupReplyValidationError) Field

Field function returns field value.

func (SelectGroupReplyValidationError) Key

Key function returns key value.

func (SelectGroupReplyValidationError) Reason

Reason function returns reason value.

type SelectGroupRequest

type SelectGroupRequest struct {

	// 分页参数, 必填
	Page *api.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	// 关键字, 长度0-32
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// 状态
	Status api.Status `protobuf:"varint,3,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

获取策略组下拉列表请求参数

func (*SelectGroupRequest) Descriptor deprecated

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

Deprecated: Use SelectGroupRequest.ProtoReflect.Descriptor instead.

func (*SelectGroupRequest) GetKeyword

func (x *SelectGroupRequest) GetKeyword() string

func (*SelectGroupRequest) GetPage

func (x *SelectGroupRequest) GetPage() *api.PageRequest

func (*SelectGroupRequest) GetStatus

func (x *SelectGroupRequest) GetStatus() api.Status

func (*SelectGroupRequest) ProtoMessage

func (*SelectGroupRequest) ProtoMessage()

func (*SelectGroupRequest) ProtoReflect

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

func (*SelectGroupRequest) Reset

func (x *SelectGroupRequest) Reset()

func (*SelectGroupRequest) String

func (x *SelectGroupRequest) String() string

func (*SelectGroupRequest) Validate

func (m *SelectGroupRequest) Validate() error

Validate checks the field values on SelectGroupRequest 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 (*SelectGroupRequest) ValidateAll

func (m *SelectGroupRequest) ValidateAll() error

ValidateAll checks the field values on SelectGroupRequest 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 SelectGroupRequestMultiError, or nil if none found.

type SelectGroupRequestMultiError

type SelectGroupRequestMultiError []error

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

func (SelectGroupRequestMultiError) AllErrors

func (m SelectGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SelectGroupRequestMultiError) Error

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

type SelectGroupRequestValidationError

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

SelectGroupRequestValidationError is the validation error returned by SelectGroupRequest.Validate if the designated constraints aren't met.

func (SelectGroupRequestValidationError) Cause

Cause function returns cause value.

func (SelectGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (SelectGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (SelectGroupRequestValidationError) Field

Field function returns field value.

func (SelectGroupRequestValidationError) Key

Key function returns key value.

func (SelectGroupRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedGroupServer

type UnimplementedGroupServer struct {
}

UnimplementedGroupServer must be embedded to have forward compatible implementations.

func (UnimplementedGroupServer) BatchDeleteGroup

func (UnimplementedGroupServer) CreateGroup

func (UnimplementedGroupServer) DeleteGroup

func (UnimplementedGroupServer) ExportGroup

func (UnimplementedGroupServer) GetGroup

func (UnimplementedGroupServer) ImportGroup

func (UnimplementedGroupServer) ListAllGroupDetail

func (UnimplementedGroupServer) ListAllGroupDetailV2 added in v0.0.16

func (UnimplementedGroupServer) ListGroup

func (UnimplementedGroupServer) SelectGroup

func (UnimplementedGroupServer) UpdateGroup

type UnsafeGroupServer

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

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

type UpdateGroupReply

type UpdateGroupReply struct {

	// 策略组ID, 更新成功后返回
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

更新策略组响应参数

func (*UpdateGroupReply) Descriptor deprecated

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

Deprecated: Use UpdateGroupReply.ProtoReflect.Descriptor instead.

func (*UpdateGroupReply) GetId

func (x *UpdateGroupReply) GetId() uint32

func (*UpdateGroupReply) ProtoMessage

func (*UpdateGroupReply) ProtoMessage()

func (*UpdateGroupReply) ProtoReflect

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

func (*UpdateGroupReply) Reset

func (x *UpdateGroupReply) Reset()

func (*UpdateGroupReply) String

func (x *UpdateGroupReply) String() string

func (*UpdateGroupReply) Validate

func (m *UpdateGroupReply) Validate() error

Validate checks the field values on UpdateGroupReply 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 (*UpdateGroupReply) ValidateAll

func (m *UpdateGroupReply) ValidateAll() error

ValidateAll checks the field values on UpdateGroupReply 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 UpdateGroupReplyMultiError, or nil if none found.

type UpdateGroupReplyMultiError

type UpdateGroupReplyMultiError []error

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

func (UpdateGroupReplyMultiError) AllErrors

func (m UpdateGroupReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateGroupReplyMultiError) Error

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

type UpdateGroupReplyValidationError

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

UpdateGroupReplyValidationError is the validation error returned by UpdateGroupReply.Validate if the designated constraints aren't met.

func (UpdateGroupReplyValidationError) Cause

Cause function returns cause value.

func (UpdateGroupReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateGroupReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateGroupReplyValidationError) Field

Field function returns field value.

func (UpdateGroupReplyValidationError) Key

Key function returns key value.

func (UpdateGroupReplyValidationError) Reason

Reason function returns reason value.

type UpdateGroupRequest

type UpdateGroupRequest struct {

	// 策略组ID
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 策略组名称, 长度1-32, 字母数字下划线(^[a-zA-Z0-9_]+$)
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 策略组分类, 对应字典表ID, 不允许为0
	CategoryIds []uint32 `protobuf:"varint,3,rep,packed,name=categoryIds,proto3" json:"categoryIds,omitempty"`
	// 策略组备注, 长度0-255
	Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"`
	// contains filtered or unexported fields
}

更新策略组请求

func (*UpdateGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateGroupRequest) GetCategoryIds

func (x *UpdateGroupRequest) GetCategoryIds() []uint32

func (*UpdateGroupRequest) GetId

func (x *UpdateGroupRequest) GetId() uint32

func (*UpdateGroupRequest) GetName

func (x *UpdateGroupRequest) GetName() string

func (*UpdateGroupRequest) GetRemark

func (x *UpdateGroupRequest) GetRemark() string

func (*UpdateGroupRequest) ProtoMessage

func (*UpdateGroupRequest) ProtoMessage()

func (*UpdateGroupRequest) ProtoReflect

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

func (*UpdateGroupRequest) Reset

func (x *UpdateGroupRequest) Reset()

func (*UpdateGroupRequest) String

func (x *UpdateGroupRequest) String() string

func (*UpdateGroupRequest) Validate

func (m *UpdateGroupRequest) Validate() error

Validate checks the field values on UpdateGroupRequest 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 (*UpdateGroupRequest) ValidateAll

func (m *UpdateGroupRequest) ValidateAll() error

ValidateAll checks the field values on UpdateGroupRequest 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 UpdateGroupRequestMultiError, or nil if none found.

type UpdateGroupRequestMultiError

type UpdateGroupRequestMultiError []error

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

func (UpdateGroupRequestMultiError) AllErrors

func (m UpdateGroupRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateGroupRequestMultiError) Error

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

type UpdateGroupRequestValidationError

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

UpdateGroupRequestValidationError is the validation error returned by UpdateGroupRequest.Validate if the designated constraints aren't met.

func (UpdateGroupRequestValidationError) Cause

Cause function returns cause value.

func (UpdateGroupRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateGroupRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateGroupRequestValidationError) Field

Field function returns field value.

func (UpdateGroupRequestValidationError) Key

Key function returns key value.

func (UpdateGroupRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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