v1

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Resource_GetResource_FullMethodName         = "/configure.api.configure.resource.v1.Resource/GetResource"
	Resource_ListResource_FullMethodName        = "/configure.api.configure.resource.v1.Resource/ListResource"
	Resource_CreateResource_FullMethodName      = "/configure.api.configure.resource.v1.Resource/CreateResource"
	Resource_UpdateResource_FullMethodName      = "/configure.api.configure.resource.v1.Resource/UpdateResource"
	Resource_DeleteResource_FullMethodName      = "/configure.api.configure.resource.v1.Resource/DeleteResource"
	Resource_ListResourceValue_FullMethodName   = "/configure.api.configure.resource.v1.Resource/ListResourceValue"
	Resource_UpdateResourceValue_FullMethodName = "/configure.api.configure.resource.v1.Resource/UpdateResourceValue"
)
View Source
const OperationResourceCreateResource = "/configure.api.configure.resource.v1.Resource/CreateResource"
View Source
const OperationResourceDeleteResource = "/configure.api.configure.resource.v1.Resource/DeleteResource"
View Source
const OperationResourceGetResource = "/configure.api.configure.resource.v1.Resource/GetResource"
View Source
const OperationResourceListResource = "/configure.api.configure.resource.v1.Resource/ListResource"
View Source
const OperationResourceListResourceValue = "/configure.api.configure.resource.v1.Resource/ListResourceValue"
View Source
const OperationResourceUpdateResource = "/configure.api.configure.resource.v1.Resource/UpdateResource"
View Source
const OperationResourceUpdateResourceValue = "/configure.api.configure.resource.v1.Resource/UpdateResourceValue"

Variables

View Source
var File_api_configure_resource_configure_resource_proto protoreflect.FileDescriptor
View Source
var File_api_configure_resource_configure_resource_service_proto protoreflect.FileDescriptor
View Source
var File_api_configure_resource_configure_resource_value_proto protoreflect.FileDescriptor
View Source
var Resource_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "configure.api.configure.resource.v1.Resource",
	HandlerType: (*ResourceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetResource",
			Handler:    _Resource_GetResource_Handler,
		},
		{
			MethodName: "ListResource",
			Handler:    _Resource_ListResource_Handler,
		},
		{
			MethodName: "CreateResource",
			Handler:    _Resource_CreateResource_Handler,
		},
		{
			MethodName: "UpdateResource",
			Handler:    _Resource_UpdateResource_Handler,
		},
		{
			MethodName: "DeleteResource",
			Handler:    _Resource_DeleteResource_Handler,
		},
		{
			MethodName: "ListResourceValue",
			Handler:    _Resource_ListResourceValue_Handler,
		},
		{
			MethodName: "UpdateResourceValue",
			Handler:    _Resource_UpdateResourceValue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/configure/resource/configure_resource_service.proto",
}

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

Functions

func RegisterResourceHTTPServer

func RegisterResourceHTTPServer(s *http.Server, srv ResourceHTTPServer)

func RegisterResourceServer

func RegisterResourceServer(s grpc.ServiceRegistrar, srv ResourceServer)

Types

type CreateResourceReply

type CreateResourceReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResourceReply) Descriptor deprecated

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

Deprecated: Use CreateResourceReply.ProtoReflect.Descriptor instead.

func (*CreateResourceReply) GetId

func (x *CreateResourceReply) GetId() uint32

func (*CreateResourceReply) ProtoMessage

func (*CreateResourceReply) ProtoMessage()

func (*CreateResourceReply) ProtoReflect

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

func (*CreateResourceReply) Reset

func (x *CreateResourceReply) Reset()

func (*CreateResourceReply) String

func (x *CreateResourceReply) String() string

func (*CreateResourceReply) Validate

func (m *CreateResourceReply) Validate() error

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

func (m *CreateResourceReply) ValidateAll() error

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

type CreateResourceReplyMultiError

type CreateResourceReplyMultiError []error

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

func (CreateResourceReplyMultiError) AllErrors

func (m CreateResourceReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateResourceReplyMultiError) Error

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

type CreateResourceReplyValidationError

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

CreateResourceReplyValidationError is the validation error returned by CreateResourceReply.Validate if the designated constraints aren't met.

func (CreateResourceReplyValidationError) Cause

Cause function returns cause value.

func (CreateResourceReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateResourceReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateResourceReplyValidationError) Field

Field function returns field value.

func (CreateResourceReplyValidationError) Key

Key function returns key value.

func (CreateResourceReplyValidationError) Reason

Reason function returns reason value.

type CreateResourceRequest

type CreateResourceRequest struct {
	Keyword     string   `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Fields      string   `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"`
	Tag         string   `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	Private     *bool    `protobuf:"varint,4,opt,name=private,proto3,oneof" json:"private,omitempty"`
	ServerIds   []uint32 `protobuf:"varint,5,rep,packed,name=serverIds,proto3" json:"serverIds,omitempty"`
	Description *string  `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResourceRequest) Descriptor deprecated

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

Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.

func (*CreateResourceRequest) GetDescription

func (x *CreateResourceRequest) GetDescription() string

func (*CreateResourceRequest) GetFields

func (x *CreateResourceRequest) GetFields() string

func (*CreateResourceRequest) GetKeyword

func (x *CreateResourceRequest) GetKeyword() string

func (*CreateResourceRequest) GetPrivate

func (x *CreateResourceRequest) GetPrivate() bool

func (*CreateResourceRequest) GetServerIds

func (x *CreateResourceRequest) GetServerIds() []uint32

func (*CreateResourceRequest) GetTag

func (x *CreateResourceRequest) GetTag() string

func (*CreateResourceRequest) ProtoMessage

func (*CreateResourceRequest) ProtoMessage()

func (*CreateResourceRequest) ProtoReflect

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

func (*CreateResourceRequest) Reset

func (x *CreateResourceRequest) Reset()

func (*CreateResourceRequest) String

func (x *CreateResourceRequest) String() string

func (*CreateResourceRequest) Validate

func (m *CreateResourceRequest) Validate() error

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

func (m *CreateResourceRequest) ValidateAll() error

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

type CreateResourceRequestMultiError

type CreateResourceRequestMultiError []error

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

func (CreateResourceRequestMultiError) AllErrors

func (m CreateResourceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateResourceRequestMultiError) Error

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

type CreateResourceRequestValidationError

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

CreateResourceRequestValidationError is the validation error returned by CreateResourceRequest.Validate if the designated constraints aren't met.

func (CreateResourceRequestValidationError) Cause

Cause function returns cause value.

func (CreateResourceRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateResourceRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateResourceRequestValidationError) Field

Field function returns field value.

func (CreateResourceRequestValidationError) Key

Key function returns key value.

func (CreateResourceRequestValidationError) Reason

Reason function returns reason value.

type DeleteResourceReply

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

func (*DeleteResourceReply) Descriptor deprecated

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

Deprecated: Use DeleteResourceReply.ProtoReflect.Descriptor instead.

func (*DeleteResourceReply) ProtoMessage

func (*DeleteResourceReply) ProtoMessage()

func (*DeleteResourceReply) ProtoReflect

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

func (*DeleteResourceReply) Reset

func (x *DeleteResourceReply) Reset()

func (*DeleteResourceReply) String

func (x *DeleteResourceReply) String() string

func (*DeleteResourceReply) Validate

func (m *DeleteResourceReply) Validate() error

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

func (m *DeleteResourceReply) ValidateAll() error

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

type DeleteResourceReplyMultiError

type DeleteResourceReplyMultiError []error

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

func (DeleteResourceReplyMultiError) AllErrors

func (m DeleteResourceReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResourceReplyMultiError) Error

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

type DeleteResourceReplyValidationError

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

DeleteResourceReplyValidationError is the validation error returned by DeleteResourceReply.Validate if the designated constraints aren't met.

func (DeleteResourceReplyValidationError) Cause

Cause function returns cause value.

func (DeleteResourceReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteResourceReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteResourceReplyValidationError) Field

Field function returns field value.

func (DeleteResourceReplyValidationError) Key

Key function returns key value.

func (DeleteResourceReplyValidationError) Reason

Reason function returns reason value.

type DeleteResourceRequest

type DeleteResourceRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResourceRequest) Descriptor deprecated

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

Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.

func (*DeleteResourceRequest) GetId added in v1.0.45

func (x *DeleteResourceRequest) GetId() uint32

func (*DeleteResourceRequest) ProtoMessage

func (*DeleteResourceRequest) ProtoMessage()

func (*DeleteResourceRequest) ProtoReflect

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

func (*DeleteResourceRequest) Reset

func (x *DeleteResourceRequest) Reset()

func (*DeleteResourceRequest) String

func (x *DeleteResourceRequest) String() string

func (*DeleteResourceRequest) Validate

func (m *DeleteResourceRequest) Validate() error

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

func (m *DeleteResourceRequest) ValidateAll() error

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

type DeleteResourceRequestMultiError

type DeleteResourceRequestMultiError []error

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

func (DeleteResourceRequestMultiError) AllErrors

func (m DeleteResourceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResourceRequestMultiError) Error

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

type DeleteResourceRequestValidationError

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

DeleteResourceRequestValidationError is the validation error returned by DeleteResourceRequest.Validate if the designated constraints aren't met.

func (DeleteResourceRequestValidationError) Cause

Cause function returns cause value.

func (DeleteResourceRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteResourceRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteResourceRequestValidationError) Field

Field function returns field value.

func (DeleteResourceRequestValidationError) Key

Key function returns key value.

func (DeleteResourceRequestValidationError) Reason

Reason function returns reason value.

type GetResourceReply

type GetResourceReply struct {
	Id          uint32                     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string                     `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Fields      string                     `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"`
	Tag         string                     `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
	Private     *bool                      `protobuf:"varint,5,opt,name=private,proto3,oneof" json:"private,omitempty"`
	Description *string                    `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt   uint32                     `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32                     `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	Servers     []*GetResourceReply_Server `protobuf:"bytes,9,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourceReply) Descriptor deprecated

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

Deprecated: Use GetResourceReply.ProtoReflect.Descriptor instead.

func (*GetResourceReply) GetCreatedAt

func (x *GetResourceReply) GetCreatedAt() uint32

func (*GetResourceReply) GetDescription

func (x *GetResourceReply) GetDescription() string

func (*GetResourceReply) GetFields

func (x *GetResourceReply) GetFields() string

func (*GetResourceReply) GetId

func (x *GetResourceReply) GetId() uint32

func (*GetResourceReply) GetKeyword

func (x *GetResourceReply) GetKeyword() string

func (*GetResourceReply) GetPrivate

func (x *GetResourceReply) GetPrivate() bool

func (*GetResourceReply) GetServers

func (x *GetResourceReply) GetServers() []*GetResourceReply_Server

func (*GetResourceReply) GetTag

func (x *GetResourceReply) GetTag() string

func (*GetResourceReply) GetUpdatedAt

func (x *GetResourceReply) GetUpdatedAt() uint32

func (*GetResourceReply) ProtoMessage

func (*GetResourceReply) ProtoMessage()

func (*GetResourceReply) ProtoReflect

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

func (*GetResourceReply) Reset

func (x *GetResourceReply) Reset()

func (*GetResourceReply) String

func (x *GetResourceReply) String() string

func (*GetResourceReply) Validate

func (m *GetResourceReply) Validate() error

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

func (m *GetResourceReply) ValidateAll() error

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

type GetResourceReplyMultiError

type GetResourceReplyMultiError []error

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

func (GetResourceReplyMultiError) AllErrors

func (m GetResourceReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetResourceReplyMultiError) Error

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

type GetResourceReplyValidationError

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

GetResourceReplyValidationError is the validation error returned by GetResourceReply.Validate if the designated constraints aren't met.

func (GetResourceReplyValidationError) Cause

Cause function returns cause value.

func (GetResourceReplyValidationError) Error

Error satisfies the builtin error interface

func (GetResourceReplyValidationError) ErrorName

ErrorName returns error name.

func (GetResourceReplyValidationError) Field

Field function returns field value.

func (GetResourceReplyValidationError) Key

Key function returns key value.

func (GetResourceReplyValidationError) Reason

Reason function returns reason value.

type GetResourceReply_Server

type GetResourceReply_Server struct {
	Id   uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourceReply_Server) Descriptor deprecated

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

Deprecated: Use GetResourceReply_Server.ProtoReflect.Descriptor instead.

func (*GetResourceReply_Server) GetId

func (x *GetResourceReply_Server) GetId() uint32

func (*GetResourceReply_Server) GetName

func (x *GetResourceReply_Server) GetName() string

func (*GetResourceReply_Server) ProtoMessage

func (*GetResourceReply_Server) ProtoMessage()

func (*GetResourceReply_Server) ProtoReflect

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

func (*GetResourceReply_Server) Reset

func (x *GetResourceReply_Server) Reset()

func (*GetResourceReply_Server) String

func (x *GetResourceReply_Server) String() string

func (*GetResourceReply_Server) Validate

func (m *GetResourceReply_Server) Validate() error

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

func (m *GetResourceReply_Server) ValidateAll() error

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

type GetResourceReply_ServerMultiError

type GetResourceReply_ServerMultiError []error

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

func (GetResourceReply_ServerMultiError) AllErrors

func (m GetResourceReply_ServerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetResourceReply_ServerMultiError) Error

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

type GetResourceReply_ServerValidationError

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

GetResourceReply_ServerValidationError is the validation error returned by GetResourceReply_Server.Validate if the designated constraints aren't met.

func (GetResourceReply_ServerValidationError) Cause

Cause function returns cause value.

func (GetResourceReply_ServerValidationError) Error

Error satisfies the builtin error interface

func (GetResourceReply_ServerValidationError) ErrorName

ErrorName returns error name.

func (GetResourceReply_ServerValidationError) Field

Field function returns field value.

func (GetResourceReply_ServerValidationError) Key

Key function returns key value.

func (GetResourceReply_ServerValidationError) Reason

Reason function returns reason value.

type GetResourceRequest

type GetResourceRequest struct {

	// Types that are assignable to Params:
	//
	//	*GetResourceRequest_Id
	//	*GetResourceRequest_Keyword
	Params isGetResourceRequest_Params `protobuf_oneof:"params"`
	// contains filtered or unexported fields
}

func (*GetResourceRequest) Descriptor deprecated

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

Deprecated: Use GetResourceRequest.ProtoReflect.Descriptor instead.

func (*GetResourceRequest) GetId

func (x *GetResourceRequest) GetId() uint32

func (*GetResourceRequest) GetKeyword

func (x *GetResourceRequest) GetKeyword() string

func (*GetResourceRequest) GetParams added in v1.0.45

func (m *GetResourceRequest) GetParams() isGetResourceRequest_Params

func (*GetResourceRequest) ProtoMessage

func (*GetResourceRequest) ProtoMessage()

func (*GetResourceRequest) ProtoReflect

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

func (*GetResourceRequest) Reset

func (x *GetResourceRequest) Reset()

func (*GetResourceRequest) String

func (x *GetResourceRequest) String() string

func (*GetResourceRequest) Validate

func (m *GetResourceRequest) Validate() error

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

func (m *GetResourceRequest) ValidateAll() error

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

type GetResourceRequestMultiError

type GetResourceRequestMultiError []error

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

func (GetResourceRequestMultiError) AllErrors

func (m GetResourceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetResourceRequestMultiError) Error

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

type GetResourceRequestValidationError

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

GetResourceRequestValidationError is the validation error returned by GetResourceRequest.Validate if the designated constraints aren't met.

func (GetResourceRequestValidationError) Cause

Cause function returns cause value.

func (GetResourceRequestValidationError) Error

Error satisfies the builtin error interface

func (GetResourceRequestValidationError) ErrorName

ErrorName returns error name.

func (GetResourceRequestValidationError) Field

Field function returns field value.

func (GetResourceRequestValidationError) Key

Key function returns key value.

func (GetResourceRequestValidationError) Reason

Reason function returns reason value.

type GetResourceRequest_Id added in v1.0.45

type GetResourceRequest_Id struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof"`
}

type GetResourceRequest_Keyword added in v1.0.45

type GetResourceRequest_Keyword struct {
	Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof"`
}

type ListResourceReply

type ListResourceReply struct {
	Total uint32                        `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListResourceReply_Resource `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceReply) Descriptor deprecated

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

Deprecated: Use ListResourceReply.ProtoReflect.Descriptor instead.

func (*ListResourceReply) GetList

func (*ListResourceReply) GetTotal

func (x *ListResourceReply) GetTotal() uint32

func (*ListResourceReply) ProtoMessage

func (*ListResourceReply) ProtoMessage()

func (*ListResourceReply) ProtoReflect

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

func (*ListResourceReply) Reset

func (x *ListResourceReply) Reset()

func (*ListResourceReply) String

func (x *ListResourceReply) String() string

func (*ListResourceReply) Validate

func (m *ListResourceReply) Validate() error

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

func (m *ListResourceReply) ValidateAll() error

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

type ListResourceReplyMultiError

type ListResourceReplyMultiError []error

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

func (ListResourceReplyMultiError) AllErrors

func (m ListResourceReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResourceReplyMultiError) Error

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

type ListResourceReplyValidationError

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

ListResourceReplyValidationError is the validation error returned by ListResourceReply.Validate if the designated constraints aren't met.

func (ListResourceReplyValidationError) Cause

Cause function returns cause value.

func (ListResourceReplyValidationError) Error

Error satisfies the builtin error interface

func (ListResourceReplyValidationError) ErrorName

ErrorName returns error name.

func (ListResourceReplyValidationError) Field

Field function returns field value.

func (ListResourceReplyValidationError) Key

Key function returns key value.

func (ListResourceReplyValidationError) Reason

Reason function returns reason value.

type ListResourceReply_Resource

type ListResourceReply_Resource struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Fields      string  `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"`
	Tag         string  `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
	Private     *bool   `protobuf:"varint,5,opt,name=private,proto3,oneof" json:"private,omitempty"`
	Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt   uint32  `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32  `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceReply_Resource) Descriptor deprecated

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

Deprecated: Use ListResourceReply_Resource.ProtoReflect.Descriptor instead.

func (*ListResourceReply_Resource) GetCreatedAt

func (x *ListResourceReply_Resource) GetCreatedAt() uint32

func (*ListResourceReply_Resource) GetDescription

func (x *ListResourceReply_Resource) GetDescription() string

func (*ListResourceReply_Resource) GetFields

func (x *ListResourceReply_Resource) GetFields() string

func (*ListResourceReply_Resource) GetId

func (*ListResourceReply_Resource) GetKeyword

func (x *ListResourceReply_Resource) GetKeyword() string

func (*ListResourceReply_Resource) GetPrivate

func (x *ListResourceReply_Resource) GetPrivate() bool

func (*ListResourceReply_Resource) GetTag

func (x *ListResourceReply_Resource) GetTag() string

func (*ListResourceReply_Resource) GetUpdatedAt

func (x *ListResourceReply_Resource) GetUpdatedAt() uint32

func (*ListResourceReply_Resource) ProtoMessage

func (*ListResourceReply_Resource) ProtoMessage()

func (*ListResourceReply_Resource) ProtoReflect

func (*ListResourceReply_Resource) Reset

func (x *ListResourceReply_Resource) Reset()

func (*ListResourceReply_Resource) String

func (x *ListResourceReply_Resource) String() string

func (*ListResourceReply_Resource) Validate

func (m *ListResourceReply_Resource) Validate() error

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

func (m *ListResourceReply_Resource) ValidateAll() error

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

type ListResourceReply_ResourceMultiError

type ListResourceReply_ResourceMultiError []error

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

func (ListResourceReply_ResourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListResourceReply_ResourceMultiError) Error

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

type ListResourceReply_ResourceValidationError

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

ListResourceReply_ResourceValidationError is the validation error returned by ListResourceReply_Resource.Validate if the designated constraints aren't met.

func (ListResourceReply_ResourceValidationError) Cause

Cause function returns cause value.

func (ListResourceReply_ResourceValidationError) Error

Error satisfies the builtin error interface

func (ListResourceReply_ResourceValidationError) ErrorName

ErrorName returns error name.

func (ListResourceReply_ResourceValidationError) Field

Field function returns field value.

func (ListResourceReply_ResourceValidationError) Key

Key function returns key value.

func (ListResourceReply_ResourceValidationError) Reason

Reason function returns reason value.

type ListResourceRequest

type ListResourceRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Order    *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
	OrderBy  *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
	Keyword  *string `protobuf:"bytes,5,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Tag      *string `protobuf:"bytes,6,opt,name=tag,proto3,oneof" json:"tag,omitempty"`
	Private  *bool   `protobuf:"varint,7,opt,name=private,proto3,oneof" json:"private,omitempty"`
	ServerId *uint32 `protobuf:"varint,8,opt,name=serverId,proto3,oneof" json:"serverId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceRequest) Descriptor deprecated

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

Deprecated: Use ListResourceRequest.ProtoReflect.Descriptor instead.

func (*ListResourceRequest) GetKeyword

func (x *ListResourceRequest) GetKeyword() string

func (*ListResourceRequest) GetOrder

func (x *ListResourceRequest) GetOrder() string

func (*ListResourceRequest) GetOrderBy

func (x *ListResourceRequest) GetOrderBy() string

func (*ListResourceRequest) GetPage

func (x *ListResourceRequest) GetPage() uint32

func (*ListResourceRequest) GetPageSize

func (x *ListResourceRequest) GetPageSize() uint32

func (*ListResourceRequest) GetPrivate

func (x *ListResourceRequest) GetPrivate() bool

func (*ListResourceRequest) GetServerId

func (x *ListResourceRequest) GetServerId() uint32

func (*ListResourceRequest) GetTag

func (x *ListResourceRequest) GetTag() string

func (*ListResourceRequest) ProtoMessage

func (*ListResourceRequest) ProtoMessage()

func (*ListResourceRequest) ProtoReflect

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

func (*ListResourceRequest) Reset

func (x *ListResourceRequest) Reset()

func (*ListResourceRequest) String

func (x *ListResourceRequest) String() string

func (*ListResourceRequest) Validate

func (m *ListResourceRequest) Validate() error

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

func (m *ListResourceRequest) ValidateAll() error

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

type ListResourceRequestMultiError

type ListResourceRequestMultiError []error

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

func (ListResourceRequestMultiError) AllErrors

func (m ListResourceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResourceRequestMultiError) Error

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

type ListResourceRequestValidationError

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

ListResourceRequestValidationError is the validation error returned by ListResourceRequest.Validate if the designated constraints aren't met.

func (ListResourceRequestValidationError) Cause

Cause function returns cause value.

func (ListResourceRequestValidationError) Error

Error satisfies the builtin error interface

func (ListResourceRequestValidationError) ErrorName

ErrorName returns error name.

func (ListResourceRequestValidationError) Field

Field function returns field value.

func (ListResourceRequestValidationError) Key

Key function returns key value.

func (ListResourceRequestValidationError) Reason

Reason function returns reason value.

type ListResourceValueReply

type ListResourceValueReply struct {
	Total uint32                                  `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListResourceValueReply_ResourceValue `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceValueReply) Descriptor deprecated

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

Deprecated: Use ListResourceValueReply.ProtoReflect.Descriptor instead.

func (*ListResourceValueReply) GetList

func (*ListResourceValueReply) GetTotal

func (x *ListResourceValueReply) GetTotal() uint32

func (*ListResourceValueReply) ProtoMessage

func (*ListResourceValueReply) ProtoMessage()

func (*ListResourceValueReply) ProtoReflect

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

func (*ListResourceValueReply) Reset

func (x *ListResourceValueReply) Reset()

func (*ListResourceValueReply) String

func (x *ListResourceValueReply) String() string

func (*ListResourceValueReply) Validate

func (m *ListResourceValueReply) Validate() error

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

func (m *ListResourceValueReply) ValidateAll() error

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

type ListResourceValueReplyMultiError

type ListResourceValueReplyMultiError []error

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

func (ListResourceValueReplyMultiError) AllErrors

func (m ListResourceValueReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResourceValueReplyMultiError) Error

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

type ListResourceValueReplyValidationError

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

ListResourceValueReplyValidationError is the validation error returned by ListResourceValueReply.Validate if the designated constraints aren't met.

func (ListResourceValueReplyValidationError) Cause

Cause function returns cause value.

func (ListResourceValueReplyValidationError) Error

Error satisfies the builtin error interface

func (ListResourceValueReplyValidationError) ErrorName

ErrorName returns error name.

func (ListResourceValueReplyValidationError) Field

Field function returns field value.

func (ListResourceValueReplyValidationError) Key

Key function returns key value.

func (ListResourceValueReplyValidationError) Reason

Reason function returns reason value.

type ListResourceValueReply_ResourceValue

type ListResourceValueReply_ResourceValue struct {
	Id         uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	EnvId      uint32 `protobuf:"varint,2,opt,name=envId,proto3" json:"envId,omitempty"`
	ResourceId uint32 `protobuf:"varint,3,opt,name=resourceId,proto3" json:"resourceId,omitempty"`
	Value      string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	CreatedAt  uint32 `protobuf:"varint,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt  uint32 `protobuf:"varint,6,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceValueReply_ResourceValue) Descriptor deprecated

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

Deprecated: Use ListResourceValueReply_ResourceValue.ProtoReflect.Descriptor instead.

func (*ListResourceValueReply_ResourceValue) GetCreatedAt

func (x *ListResourceValueReply_ResourceValue) GetCreatedAt() uint32

func (*ListResourceValueReply_ResourceValue) GetEnvId

func (*ListResourceValueReply_ResourceValue) GetId

func (*ListResourceValueReply_ResourceValue) GetResourceId

func (x *ListResourceValueReply_ResourceValue) GetResourceId() uint32

func (*ListResourceValueReply_ResourceValue) GetUpdatedAt

func (x *ListResourceValueReply_ResourceValue) GetUpdatedAt() uint32

func (*ListResourceValueReply_ResourceValue) GetValue

func (*ListResourceValueReply_ResourceValue) ProtoMessage

func (*ListResourceValueReply_ResourceValue) ProtoMessage()

func (*ListResourceValueReply_ResourceValue) ProtoReflect

func (*ListResourceValueReply_ResourceValue) Reset

func (*ListResourceValueReply_ResourceValue) String

func (*ListResourceValueReply_ResourceValue) Validate

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

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

type ListResourceValueReply_ResourceValueMultiError

type ListResourceValueReply_ResourceValueMultiError []error

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

func (ListResourceValueReply_ResourceValueMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListResourceValueReply_ResourceValueMultiError) Error

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

type ListResourceValueReply_ResourceValueValidationError

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

ListResourceValueReply_ResourceValueValidationError is the validation error returned by ListResourceValueReply_ResourceValue.Validate if the designated constraints aren't met.

func (ListResourceValueReply_ResourceValueValidationError) Cause

Cause function returns cause value.

func (ListResourceValueReply_ResourceValueValidationError) Error

Error satisfies the builtin error interface

func (ListResourceValueReply_ResourceValueValidationError) ErrorName

ErrorName returns error name.

func (ListResourceValueReply_ResourceValueValidationError) Field

Field function returns field value.

func (ListResourceValueReply_ResourceValueValidationError) Key

Key function returns key value.

func (ListResourceValueReply_ResourceValueValidationError) Reason

Reason function returns reason value.

type ListResourceValueRequest

type ListResourceValueRequest struct {
	ResourceId uint32 `protobuf:"varint,3,opt,name=resourceId,proto3" json:"resourceId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResourceValueRequest) Descriptor deprecated

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

Deprecated: Use ListResourceValueRequest.ProtoReflect.Descriptor instead.

func (*ListResourceValueRequest) GetResourceId

func (x *ListResourceValueRequest) GetResourceId() uint32

func (*ListResourceValueRequest) ProtoMessage

func (*ListResourceValueRequest) ProtoMessage()

func (*ListResourceValueRequest) ProtoReflect

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

func (*ListResourceValueRequest) Reset

func (x *ListResourceValueRequest) Reset()

func (*ListResourceValueRequest) String

func (x *ListResourceValueRequest) String() string

func (*ListResourceValueRequest) Validate

func (m *ListResourceValueRequest) Validate() error

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

func (m *ListResourceValueRequest) ValidateAll() error

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

type ListResourceValueRequestMultiError

type ListResourceValueRequestMultiError []error

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

func (ListResourceValueRequestMultiError) AllErrors

func (m ListResourceValueRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResourceValueRequestMultiError) Error

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

type ListResourceValueRequestValidationError

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

ListResourceValueRequestValidationError is the validation error returned by ListResourceValueRequest.Validate if the designated constraints aren't met.

func (ListResourceValueRequestValidationError) Cause

Cause function returns cause value.

func (ListResourceValueRequestValidationError) Error

Error satisfies the builtin error interface

func (ListResourceValueRequestValidationError) ErrorName

ErrorName returns error name.

func (ListResourceValueRequestValidationError) Field

Field function returns field value.

func (ListResourceValueRequestValidationError) Key

Key function returns key value.

func (ListResourceValueRequestValidationError) Reason

Reason function returns reason value.

type ResourceClient

type ResourceClient interface {
	// GetResource 获取指定的资源配置信息
	GetResource(ctx context.Context, in *GetResourceRequest, opts ...grpc.CallOption) (*GetResourceReply, error)
	// ListResource 获取资源配置信息列表
	ListResource(ctx context.Context, in *ListResourceRequest, opts ...grpc.CallOption) (*ListResourceReply, error)
	// CreateResource 创建资源配置信息
	CreateResource(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*CreateResourceReply, error)
	// UpdateResource 更新资源配置信息
	UpdateResource(ctx context.Context, in *UpdateResourceRequest, opts ...grpc.CallOption) (*UpdateResourceReply, error)
	// DeleteResource 删除资源配置信息
	DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*DeleteResourceReply, error)
	// ListResourceValue 获取业务配置值信息列表
	ListResourceValue(ctx context.Context, in *ListResourceValueRequest, opts ...grpc.CallOption) (*ListResourceValueReply, error)
	// UpdateResourceValue 更新业务配置值信息
	UpdateResourceValue(ctx context.Context, in *UpdateResourceValueRequest, opts ...grpc.CallOption) (*UpdateResourceValueReply, error)
}

ResourceClient is the client API for Resource 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 NewResourceClient

func NewResourceClient(cc grpc.ClientConnInterface) ResourceClient

type ResourceHTTPClient

type ResourceHTTPClient interface {
	CreateResource(ctx context.Context, req *CreateResourceRequest, opts ...http.CallOption) (rsp *CreateResourceReply, err error)
	DeleteResource(ctx context.Context, req *DeleteResourceRequest, opts ...http.CallOption) (rsp *DeleteResourceReply, err error)
	GetResource(ctx context.Context, req *GetResourceRequest, opts ...http.CallOption) (rsp *GetResourceReply, err error)
	ListResource(ctx context.Context, req *ListResourceRequest, opts ...http.CallOption) (rsp *ListResourceReply, err error)
	ListResourceValue(ctx context.Context, req *ListResourceValueRequest, opts ...http.CallOption) (rsp *ListResourceValueReply, err error)
	UpdateResource(ctx context.Context, req *UpdateResourceRequest, opts ...http.CallOption) (rsp *UpdateResourceReply, err error)
	UpdateResourceValue(ctx context.Context, req *UpdateResourceValueRequest, opts ...http.CallOption) (rsp *UpdateResourceValueReply, err error)
}

func NewResourceHTTPClient

func NewResourceHTTPClient(client *http.Client) ResourceHTTPClient

type ResourceHTTPClientImpl

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

func (*ResourceHTTPClientImpl) CreateResource

func (*ResourceHTTPClientImpl) DeleteResource

func (*ResourceHTTPClientImpl) GetResource

func (*ResourceHTTPClientImpl) ListResource

func (*ResourceHTTPClientImpl) ListResourceValue

func (*ResourceHTTPClientImpl) UpdateResource

func (*ResourceHTTPClientImpl) UpdateResourceValue

type ResourceHTTPServer

type ResourceHTTPServer interface {
	// CreateResource CreateResource 创建资源配置信息
	CreateResource(context.Context, *CreateResourceRequest) (*CreateResourceReply, error)
	// DeleteResource DeleteResource 删除资源配置信息
	DeleteResource(context.Context, *DeleteResourceRequest) (*DeleteResourceReply, error)
	// GetResource GetResource 获取指定的资源配置信息
	GetResource(context.Context, *GetResourceRequest) (*GetResourceReply, error)
	// ListResource ListResource 获取资源配置信息列表
	ListResource(context.Context, *ListResourceRequest) (*ListResourceReply, error)
	// ListResourceValue ListResourceValue 获取业务配置值信息列表
	ListResourceValue(context.Context, *ListResourceValueRequest) (*ListResourceValueReply, error)
	// UpdateResource UpdateResource 更新资源配置信息
	UpdateResource(context.Context, *UpdateResourceRequest) (*UpdateResourceReply, error)
	// UpdateResourceValue UpdateResourceValue 更新业务配置值信息
	UpdateResourceValue(context.Context, *UpdateResourceValueRequest) (*UpdateResourceValueReply, error)
}

type ResourceServer

type ResourceServer interface {
	// GetResource 获取指定的资源配置信息
	GetResource(context.Context, *GetResourceRequest) (*GetResourceReply, error)
	// ListResource 获取资源配置信息列表
	ListResource(context.Context, *ListResourceRequest) (*ListResourceReply, error)
	// CreateResource 创建资源配置信息
	CreateResource(context.Context, *CreateResourceRequest) (*CreateResourceReply, error)
	// UpdateResource 更新资源配置信息
	UpdateResource(context.Context, *UpdateResourceRequest) (*UpdateResourceReply, error)
	// DeleteResource 删除资源配置信息
	DeleteResource(context.Context, *DeleteResourceRequest) (*DeleteResourceReply, error)
	// ListResourceValue 获取业务配置值信息列表
	ListResourceValue(context.Context, *ListResourceValueRequest) (*ListResourceValueReply, error)
	// UpdateResourceValue 更新业务配置值信息
	UpdateResourceValue(context.Context, *UpdateResourceValueRequest) (*UpdateResourceValueReply, error)
	// contains filtered or unexported methods
}

ResourceServer is the server API for Resource service. All implementations must embed UnimplementedResourceServer for forward compatibility

type UnimplementedResourceServer

type UnimplementedResourceServer struct {
}

UnimplementedResourceServer must be embedded to have forward compatible implementations.

func (UnimplementedResourceServer) CreateResource

func (UnimplementedResourceServer) DeleteResource

func (UnimplementedResourceServer) GetResource

func (UnimplementedResourceServer) ListResource

func (UnimplementedResourceServer) ListResourceValue

func (UnimplementedResourceServer) UpdateResource

func (UnimplementedResourceServer) UpdateResourceValue

type UnsafeResourceServer

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

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

type UpdateResourceReply

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

func (*UpdateResourceReply) Descriptor deprecated

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

Deprecated: Use UpdateResourceReply.ProtoReflect.Descriptor instead.

func (*UpdateResourceReply) ProtoMessage

func (*UpdateResourceReply) ProtoMessage()

func (*UpdateResourceReply) ProtoReflect

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

func (*UpdateResourceReply) Reset

func (x *UpdateResourceReply) Reset()

func (*UpdateResourceReply) String

func (x *UpdateResourceReply) String() string

func (*UpdateResourceReply) Validate

func (m *UpdateResourceReply) Validate() error

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

func (m *UpdateResourceReply) ValidateAll() error

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

type UpdateResourceReplyMultiError

type UpdateResourceReplyMultiError []error

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

func (UpdateResourceReplyMultiError) AllErrors

func (m UpdateResourceReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateResourceReplyMultiError) Error

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

type UpdateResourceReplyValidationError

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

UpdateResourceReplyValidationError is the validation error returned by UpdateResourceReply.Validate if the designated constraints aren't met.

func (UpdateResourceReplyValidationError) Cause

Cause function returns cause value.

func (UpdateResourceReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateResourceReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateResourceReplyValidationError) Field

Field function returns field value.

func (UpdateResourceReplyValidationError) Key

Key function returns key value.

func (UpdateResourceReplyValidationError) Reason

Reason function returns reason value.

type UpdateResourceRequest

type UpdateResourceRequest struct {
	Id          uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string   `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Fields      string   `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"`
	Tag         string   `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
	Private     *bool    `protobuf:"varint,5,opt,name=private,proto3,oneof" json:"private,omitempty"`
	ServerIds   []uint32 `protobuf:"varint,6,rep,packed,name=serverIds,proto3" json:"serverIds,omitempty"`
	Description *string  `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResourceRequest) Descriptor deprecated

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

Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourceRequest) GetDescription

func (x *UpdateResourceRequest) GetDescription() string

func (*UpdateResourceRequest) GetFields

func (x *UpdateResourceRequest) GetFields() string

func (*UpdateResourceRequest) GetId

func (x *UpdateResourceRequest) GetId() uint32

func (*UpdateResourceRequest) GetKeyword

func (x *UpdateResourceRequest) GetKeyword() string

func (*UpdateResourceRequest) GetPrivate

func (x *UpdateResourceRequest) GetPrivate() bool

func (*UpdateResourceRequest) GetServerIds

func (x *UpdateResourceRequest) GetServerIds() []uint32

func (*UpdateResourceRequest) GetTag

func (x *UpdateResourceRequest) GetTag() string

func (*UpdateResourceRequest) ProtoMessage

func (*UpdateResourceRequest) ProtoMessage()

func (*UpdateResourceRequest) ProtoReflect

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

func (*UpdateResourceRequest) Reset

func (x *UpdateResourceRequest) Reset()

func (*UpdateResourceRequest) String

func (x *UpdateResourceRequest) String() string

func (*UpdateResourceRequest) Validate

func (m *UpdateResourceRequest) Validate() error

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

func (m *UpdateResourceRequest) ValidateAll() error

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

type UpdateResourceRequestMultiError

type UpdateResourceRequestMultiError []error

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

func (UpdateResourceRequestMultiError) AllErrors

func (m UpdateResourceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateResourceRequestMultiError) Error

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

type UpdateResourceRequestValidationError

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

UpdateResourceRequestValidationError is the validation error returned by UpdateResourceRequest.Validate if the designated constraints aren't met.

func (UpdateResourceRequestValidationError) Cause

Cause function returns cause value.

func (UpdateResourceRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateResourceRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateResourceRequestValidationError) Field

Field function returns field value.

func (UpdateResourceRequestValidationError) Key

Key function returns key value.

func (UpdateResourceRequestValidationError) Reason

Reason function returns reason value.

type UpdateResourceValueReply

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

func (*UpdateResourceValueReply) Descriptor deprecated

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

Deprecated: Use UpdateResourceValueReply.ProtoReflect.Descriptor instead.

func (*UpdateResourceValueReply) ProtoMessage

func (*UpdateResourceValueReply) ProtoMessage()

func (*UpdateResourceValueReply) ProtoReflect

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

func (*UpdateResourceValueReply) Reset

func (x *UpdateResourceValueReply) Reset()

func (*UpdateResourceValueReply) String

func (x *UpdateResourceValueReply) String() string

func (*UpdateResourceValueReply) Validate

func (m *UpdateResourceValueReply) Validate() error

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

func (m *UpdateResourceValueReply) ValidateAll() error

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

type UpdateResourceValueReplyMultiError

type UpdateResourceValueReplyMultiError []error

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

func (UpdateResourceValueReplyMultiError) AllErrors

func (m UpdateResourceValueReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateResourceValueReplyMultiError) Error

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

type UpdateResourceValueReplyValidationError

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

UpdateResourceValueReplyValidationError is the validation error returned by UpdateResourceValueReply.Validate if the designated constraints aren't met.

func (UpdateResourceValueReplyValidationError) Cause

Cause function returns cause value.

func (UpdateResourceValueReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateResourceValueReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateResourceValueReplyValidationError) Field

Field function returns field value.

func (UpdateResourceValueReplyValidationError) Key

Key function returns key value.

func (UpdateResourceValueReplyValidationError) Reason

Reason function returns reason value.

type UpdateResourceValueRequest

type UpdateResourceValueRequest struct {
	List       []*UpdateResourceValueRequest_Value `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	ResourceId uint32                              `protobuf:"varint,2,opt,name=resourceId,proto3" json:"resourceId,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResourceValueRequest) Descriptor deprecated

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

Deprecated: Use UpdateResourceValueRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourceValueRequest) GetList

func (*UpdateResourceValueRequest) GetResourceId

func (x *UpdateResourceValueRequest) GetResourceId() uint32

func (*UpdateResourceValueRequest) ProtoMessage

func (*UpdateResourceValueRequest) ProtoMessage()

func (*UpdateResourceValueRequest) ProtoReflect

func (*UpdateResourceValueRequest) Reset

func (x *UpdateResourceValueRequest) Reset()

func (*UpdateResourceValueRequest) String

func (x *UpdateResourceValueRequest) String() string

func (*UpdateResourceValueRequest) Validate

func (m *UpdateResourceValueRequest) Validate() error

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

func (m *UpdateResourceValueRequest) ValidateAll() error

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

type UpdateResourceValueRequestMultiError

type UpdateResourceValueRequestMultiError []error

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

func (UpdateResourceValueRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateResourceValueRequestMultiError) Error

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

type UpdateResourceValueRequestValidationError

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

UpdateResourceValueRequestValidationError is the validation error returned by UpdateResourceValueRequest.Validate if the designated constraints aren't met.

func (UpdateResourceValueRequestValidationError) Cause

Cause function returns cause value.

func (UpdateResourceValueRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateResourceValueRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateResourceValueRequestValidationError) Field

Field function returns field value.

func (UpdateResourceValueRequestValidationError) Key

Key function returns key value.

func (UpdateResourceValueRequestValidationError) Reason

Reason function returns reason value.

type UpdateResourceValueRequest_Value

type UpdateResourceValueRequest_Value struct {
	EnvId uint32 `protobuf:"varint,2,opt,name=envId,proto3" json:"envId,omitempty"`
	Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResourceValueRequest_Value) Descriptor deprecated

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

Deprecated: Use UpdateResourceValueRequest_Value.ProtoReflect.Descriptor instead.

func (*UpdateResourceValueRequest_Value) GetEnvId

func (*UpdateResourceValueRequest_Value) GetValue

func (*UpdateResourceValueRequest_Value) ProtoMessage

func (*UpdateResourceValueRequest_Value) ProtoMessage()

func (*UpdateResourceValueRequest_Value) ProtoReflect

func (*UpdateResourceValueRequest_Value) Reset

func (*UpdateResourceValueRequest_Value) String

func (*UpdateResourceValueRequest_Value) Validate

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

func (m *UpdateResourceValueRequest_Value) ValidateAll() error

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

type UpdateResourceValueRequest_ValueMultiError

type UpdateResourceValueRequest_ValueMultiError []error

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

func (UpdateResourceValueRequest_ValueMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateResourceValueRequest_ValueMultiError) Error

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

type UpdateResourceValueRequest_ValueValidationError

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

UpdateResourceValueRequest_ValueValidationError is the validation error returned by UpdateResourceValueRequest_Value.Validate if the designated constraints aren't met.

func (UpdateResourceValueRequest_ValueValidationError) Cause

Cause function returns cause value.

func (UpdateResourceValueRequest_ValueValidationError) Error

Error satisfies the builtin error interface

func (UpdateResourceValueRequest_ValueValidationError) ErrorName

ErrorName returns error name.

func (UpdateResourceValueRequest_ValueValidationError) Field

Field function returns field value.

func (UpdateResourceValueRequest_ValueValidationError) Key

Key function returns key value.

func (UpdateResourceValueRequest_ValueValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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