Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddObjectReply
- func (*AddObjectReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddObjectReply) GetId() uint32
- func (*AddObjectReply) ProtoMessage()
- func (x *AddObjectReply) ProtoReflect() protoreflect.Message
- func (x *AddObjectReply) Reset()
- func (x *AddObjectReply) String() string
- func (m *AddObjectReply) Validate() error
- func (m *AddObjectReply) ValidateAll() error
- type AddObjectReplyMultiError
- type AddObjectReplyValidationError
- func (e AddObjectReplyValidationError) Cause() error
- func (e AddObjectReplyValidationError) Error() string
- func (e AddObjectReplyValidationError) ErrorName() string
- func (e AddObjectReplyValidationError) Field() string
- func (e AddObjectReplyValidationError) Key() bool
- func (e AddObjectReplyValidationError) Reason() string
- type AddObjectRequest
- func (*AddObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddObjectRequest) GetApi() string
- func (x *AddObjectRequest) GetDescription() string
- func (x *AddObjectRequest) GetKeyword() string
- func (x *AddObjectRequest) GetLabel() string
- func (x *AddObjectRequest) GetMethod() string
- func (x *AddObjectRequest) GetName() string
- func (x *AddObjectRequest) GetParams() string
- func (x *AddObjectRequest) GetValue() string
- func (*AddObjectRequest) ProtoMessage()
- func (x *AddObjectRequest) ProtoReflect() protoreflect.Message
- func (x *AddObjectRequest) Reset()
- func (x *AddObjectRequest) String() string
- func (m *AddObjectRequest) Validate() error
- func (m *AddObjectRequest) ValidateAll() error
- type AddObjectRequestMultiError
- type AddObjectRequestValidationError
- func (e AddObjectRequestValidationError) Cause() error
- func (e AddObjectRequestValidationError) Error() string
- func (e AddObjectRequestValidationError) ErrorName() string
- func (e AddObjectRequestValidationError) Field() string
- func (e AddObjectRequestValidationError) Key() bool
- func (e AddObjectRequestValidationError) Reason() string
- type DeleteObjectRequest
- func (*DeleteObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteObjectRequest) GetId() uint32
- func (*DeleteObjectRequest) ProtoMessage()
- func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteObjectRequest) Reset()
- func (x *DeleteObjectRequest) String() string
- func (m *DeleteObjectRequest) Validate() error
- func (m *DeleteObjectRequest) ValidateAll() error
- type DeleteObjectRequestMultiError
- type DeleteObjectRequestValidationError
- func (e DeleteObjectRequestValidationError) Cause() error
- func (e DeleteObjectRequestValidationError) Error() string
- func (e DeleteObjectRequestValidationError) ErrorName() string
- func (e DeleteObjectRequestValidationError) Field() string
- func (e DeleteObjectRequestValidationError) Key() bool
- func (e DeleteObjectRequestValidationError) Reason() string
- type GetObjectRequest
- func (*GetObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectRequest) GetId() uint32
- func (*GetObjectRequest) ProtoMessage()
- func (x *GetObjectRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectRequest) Reset()
- func (x *GetObjectRequest) String() string
- func (m *GetObjectRequest) Validate() error
- func (m *GetObjectRequest) ValidateAll() error
- type GetObjectRequestMultiError
- type GetObjectRequestValidationError
- func (e GetObjectRequestValidationError) Cause() error
- func (e GetObjectRequestValidationError) Error() string
- func (e GetObjectRequestValidationError) ErrorName() string
- func (e GetObjectRequestValidationError) Field() string
- func (e GetObjectRequestValidationError) Key() bool
- func (e GetObjectRequestValidationError) Reason() string
- type Object
- func (*Object) Descriptor() ([]byte, []int)deprecated
- func (x *Object) GetApi() string
- func (x *Object) GetCreatedAt() uint32
- func (x *Object) GetDescription() string
- func (x *Object) GetId() uint32
- func (x *Object) GetKeyword() string
- func (x *Object) GetLabel() string
- func (x *Object) GetMethod() string
- func (x *Object) GetName() string
- func (x *Object) GetParams() string
- func (x *Object) GetUpdatedAt() uint32
- func (x *Object) GetValue() string
- func (*Object) ProtoMessage()
- func (x *Object) ProtoReflect() protoreflect.Message
- func (x *Object) Reset()
- func (x *Object) String() string
- func (m *Object) Validate() error
- func (m *Object) ValidateAll() error
- type ObjectMultiError
- type ObjectValidationError
- type PageObjectReply
- func (*PageObjectReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageObjectReply) GetList() []*Object
- func (x *PageObjectReply) GetTotal() uint32
- func (*PageObjectReply) ProtoMessage()
- func (x *PageObjectReply) ProtoReflect() protoreflect.Message
- func (x *PageObjectReply) Reset()
- func (x *PageObjectReply) String() string
- func (m *PageObjectReply) Validate() error
- func (m *PageObjectReply) ValidateAll() error
- type PageObjectReplyMultiError
- type PageObjectReplyValidationError
- func (e PageObjectReplyValidationError) Cause() error
- func (e PageObjectReplyValidationError) Error() string
- func (e PageObjectReplyValidationError) ErrorName() string
- func (e PageObjectReplyValidationError) Field() string
- func (e PageObjectReplyValidationError) Key() bool
- func (e PageObjectReplyValidationError) Reason() string
- type PageObjectRequest
- func (*PageObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageObjectRequest) GetKeyword() string
- func (x *PageObjectRequest) GetName() string
- func (x *PageObjectRequest) GetPage() uint32
- func (x *PageObjectRequest) GetPageSize() uint32
- func (*PageObjectRequest) ProtoMessage()
- func (x *PageObjectRequest) ProtoReflect() protoreflect.Message
- func (x *PageObjectRequest) Reset()
- func (x *PageObjectRequest) String() string
- func (m *PageObjectRequest) Validate() error
- func (m *PageObjectRequest) ValidateAll() error
- type PageObjectRequestMultiError
- type PageObjectRequestValidationError
- func (e PageObjectRequestValidationError) Cause() error
- func (e PageObjectRequestValidationError) Error() string
- func (e PageObjectRequestValidationError) ErrorName() string
- func (e PageObjectRequestValidationError) Field() string
- func (e PageObjectRequestValidationError) Key() bool
- func (e PageObjectRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddObject(ctx context.Context, in *AddObjectRequest, opts ...http.CallOption) (*AddObjectReply, error)
- func (c *ServiceHTTPClientImpl) DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetObject(ctx context.Context, in *GetObjectRequest, opts ...http.CallOption) (*Object, error)
- func (c *ServiceHTTPClientImpl) PageObject(ctx context.Context, in *PageObjectRequest, opts ...http.CallOption) (*PageObjectReply, error)
- func (c *ServiceHTTPClientImpl) UpdateObject(ctx context.Context, in *UpdateObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddObject(context.Context, *AddObjectRequest) (*AddObjectReply, error)
- func (UnimplementedServiceServer) DeleteObject(context.Context, *DeleteObjectRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetObject(context.Context, *GetObjectRequest) (*Object, error)
- func (UnimplementedServiceServer) PageObject(context.Context, *PageObjectRequest) (*PageObjectReply, error)
- func (UnimplementedServiceServer) UpdateObject(context.Context, *UpdateObjectRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateObjectRequest
- func (*UpdateObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateObjectRequest) GetApi() string
- func (x *UpdateObjectRequest) GetDescription() string
- func (x *UpdateObjectRequest) GetId() uint32
- func (x *UpdateObjectRequest) GetKeyword() string
- func (x *UpdateObjectRequest) GetLabel() string
- func (x *UpdateObjectRequest) GetMethod() string
- func (x *UpdateObjectRequest) GetName() string
- func (x *UpdateObjectRequest) GetParams() string
- func (x *UpdateObjectRequest) GetValue() string
- func (*UpdateObjectRequest) ProtoMessage()
- func (x *UpdateObjectRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateObjectRequest) Reset()
- func (x *UpdateObjectRequest) String() string
- func (m *UpdateObjectRequest) Validate() error
- func (m *UpdateObjectRequest) ValidateAll() error
- type UpdateObjectRequestMultiError
- type UpdateObjectRequestValidationError
- func (e UpdateObjectRequestValidationError) Cause() error
- func (e UpdateObjectRequestValidationError) Error() string
- func (e UpdateObjectRequestValidationError) ErrorName() string
- func (e UpdateObjectRequestValidationError) Field() string
- func (e UpdateObjectRequestValidationError) Key() bool
- func (e UpdateObjectRequestValidationError) Reason() string
Constants ¶
const ( Service_GetObject_FullMethodName = "/manager_object.Service/GetObject" Service_PageObject_FullMethodName = "/manager_object.Service/PageObject" Service_AddObject_FullMethodName = "/manager_object.Service/AddObject" Service_UpdateObject_FullMethodName = "/manager_object.Service/UpdateObject" Service_DeleteObject_FullMethodName = "/manager_object.Service/DeleteObject" )
const OperationServiceAddObject = "/manager_object.Service/AddObject"
const OperationServiceDeleteObject = "/manager_object.Service/DeleteObject"
const OperationServiceGetObject = "/manager_object.Service/GetObject"
const OperationServicePageObject = "/manager_object.Service/PageObject"
const OperationServiceUpdateObject = "/manager_object.Service/UpdateObject"
Variables ¶
var File_manager_object_proto protoreflect.FileDescriptor
var File_manager_object_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager_object.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetObject", Handler: _Service_GetObject_Handler, }, { MethodName: "PageObject", Handler: _Service_PageObject_Handler, }, { MethodName: "AddObject", Handler: _Service_AddObject_Handler, }, { MethodName: "UpdateObject", Handler: _Service_UpdateObject_Handler, }, { MethodName: "DeleteObject", Handler: _Service_DeleteObject_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "manager_object_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddObjectReply ¶
type AddObjectReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddObjectReply) Descriptor
deprecated
func (*AddObjectReply) Descriptor() ([]byte, []int)
Deprecated: Use AddObjectReply.ProtoReflect.Descriptor instead.
func (*AddObjectReply) GetId ¶
func (x *AddObjectReply) GetId() uint32
func (*AddObjectReply) ProtoMessage ¶
func (*AddObjectReply) ProtoMessage()
func (*AddObjectReply) ProtoReflect ¶
func (x *AddObjectReply) ProtoReflect() protoreflect.Message
func (*AddObjectReply) Reset ¶
func (x *AddObjectReply) Reset()
func (*AddObjectReply) String ¶
func (x *AddObjectReply) String() string
func (*AddObjectReply) Validate ¶
func (m *AddObjectReply) Validate() error
Validate checks the field values on AddObjectReply 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 (*AddObjectReply) ValidateAll ¶
func (m *AddObjectReply) ValidateAll() error
ValidateAll checks the field values on AddObjectReply 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 AddObjectReplyMultiError, or nil if none found.
type AddObjectReplyMultiError ¶
type AddObjectReplyMultiError []error
AddObjectReplyMultiError is an error wrapping multiple validation errors returned by AddObjectReply.ValidateAll() if the designated constraints aren't met.
func (AddObjectReplyMultiError) AllErrors ¶
func (m AddObjectReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddObjectReplyMultiError) Error ¶
func (m AddObjectReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddObjectReplyValidationError ¶
type AddObjectReplyValidationError struct {
// contains filtered or unexported fields
}
AddObjectReplyValidationError is the validation error returned by AddObjectReply.Validate if the designated constraints aren't met.
func (AddObjectReplyValidationError) Cause ¶
func (e AddObjectReplyValidationError) Cause() error
Cause function returns cause value.
func (AddObjectReplyValidationError) Error ¶
func (e AddObjectReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddObjectReplyValidationError) ErrorName ¶
func (e AddObjectReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddObjectReplyValidationError) Field ¶
func (e AddObjectReplyValidationError) Field() string
Field function returns field value.
func (AddObjectReplyValidationError) Key ¶
func (e AddObjectReplyValidationError) Key() bool
Key function returns key value.
func (AddObjectReplyValidationError) Reason ¶
func (e AddObjectReplyValidationError) Reason() string
Reason function returns reason value.
type AddObjectRequest ¶
type AddObjectRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Api string `protobuf:"bytes,3,opt,name=api,proto3" json:"api,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` Params *string `protobuf:"bytes,5,opt,name=params,proto3,oneof" json:"params,omitempty"` Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"` Value string `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*AddObjectRequest) Descriptor
deprecated
func (*AddObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddObjectRequest.ProtoReflect.Descriptor instead.
func (*AddObjectRequest) GetApi ¶
func (x *AddObjectRequest) GetApi() string
func (*AddObjectRequest) GetDescription ¶
func (x *AddObjectRequest) GetDescription() string
func (*AddObjectRequest) GetKeyword ¶
func (x *AddObjectRequest) GetKeyword() string
func (*AddObjectRequest) GetLabel ¶
func (x *AddObjectRequest) GetLabel() string
func (*AddObjectRequest) GetMethod ¶
func (x *AddObjectRequest) GetMethod() string
func (*AddObjectRequest) GetName ¶
func (x *AddObjectRequest) GetName() string
func (*AddObjectRequest) GetParams ¶
func (x *AddObjectRequest) GetParams() string
func (*AddObjectRequest) GetValue ¶
func (x *AddObjectRequest) GetValue() string
func (*AddObjectRequest) ProtoMessage ¶
func (*AddObjectRequest) ProtoMessage()
func (*AddObjectRequest) ProtoReflect ¶
func (x *AddObjectRequest) ProtoReflect() protoreflect.Message
func (*AddObjectRequest) Reset ¶
func (x *AddObjectRequest) Reset()
func (*AddObjectRequest) String ¶
func (x *AddObjectRequest) String() string
func (*AddObjectRequest) Validate ¶
func (m *AddObjectRequest) Validate() error
Validate checks the field values on AddObjectRequest 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 (*AddObjectRequest) ValidateAll ¶
func (m *AddObjectRequest) ValidateAll() error
ValidateAll checks the field values on AddObjectRequest 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 AddObjectRequestMultiError, or nil if none found.
type AddObjectRequestMultiError ¶
type AddObjectRequestMultiError []error
AddObjectRequestMultiError is an error wrapping multiple validation errors returned by AddObjectRequest.ValidateAll() if the designated constraints aren't met.
func (AddObjectRequestMultiError) AllErrors ¶
func (m AddObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddObjectRequestMultiError) Error ¶
func (m AddObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddObjectRequestValidationError ¶
type AddObjectRequestValidationError struct {
// contains filtered or unexported fields
}
AddObjectRequestValidationError is the validation error returned by AddObjectRequest.Validate if the designated constraints aren't met.
func (AddObjectRequestValidationError) Cause ¶
func (e AddObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (AddObjectRequestValidationError) Error ¶
func (e AddObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddObjectRequestValidationError) ErrorName ¶
func (e AddObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddObjectRequestValidationError) Field ¶
func (e AddObjectRequestValidationError) Field() string
Field function returns field value.
func (AddObjectRequestValidationError) Key ¶
func (e AddObjectRequestValidationError) Key() bool
Key function returns key value.
func (AddObjectRequestValidationError) Reason ¶
func (e AddObjectRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteObjectRequest ¶
type DeleteObjectRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteObjectRequest) Descriptor
deprecated
func (*DeleteObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteObjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteObjectRequest) GetId ¶
func (x *DeleteObjectRequest) GetId() uint32
func (*DeleteObjectRequest) ProtoMessage ¶
func (*DeleteObjectRequest) ProtoMessage()
func (*DeleteObjectRequest) ProtoReflect ¶
func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message
func (*DeleteObjectRequest) Reset ¶
func (x *DeleteObjectRequest) Reset()
func (*DeleteObjectRequest) String ¶
func (x *DeleteObjectRequest) String() string
func (*DeleteObjectRequest) Validate ¶
func (m *DeleteObjectRequest) Validate() error
Validate checks the field values on DeleteObjectRequest 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 (*DeleteObjectRequest) ValidateAll ¶
func (m *DeleteObjectRequest) ValidateAll() error
ValidateAll checks the field values on DeleteObjectRequest 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 DeleteObjectRequestMultiError, or nil if none found.
type DeleteObjectRequestMultiError ¶
type DeleteObjectRequestMultiError []error
DeleteObjectRequestMultiError is an error wrapping multiple validation errors returned by DeleteObjectRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteObjectRequestMultiError) AllErrors ¶
func (m DeleteObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteObjectRequestMultiError) Error ¶
func (m DeleteObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteObjectRequestValidationError ¶
type DeleteObjectRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteObjectRequestValidationError is the validation error returned by DeleteObjectRequest.Validate if the designated constraints aren't met.
func (DeleteObjectRequestValidationError) Cause ¶
func (e DeleteObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteObjectRequestValidationError) Error ¶
func (e DeleteObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteObjectRequestValidationError) ErrorName ¶
func (e DeleteObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteObjectRequestValidationError) Field ¶
func (e DeleteObjectRequestValidationError) Field() string
Field function returns field value.
func (DeleteObjectRequestValidationError) Key ¶
func (e DeleteObjectRequestValidationError) Key() bool
Key function returns key value.
func (DeleteObjectRequestValidationError) Reason ¶
func (e DeleteObjectRequestValidationError) Reason() string
Reason function returns reason value.
type GetObjectRequest ¶
type GetObjectRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetObjectRequest) Descriptor
deprecated
func (*GetObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectRequest.ProtoReflect.Descriptor instead.
func (*GetObjectRequest) GetId ¶
func (x *GetObjectRequest) GetId() uint32
func (*GetObjectRequest) ProtoMessage ¶
func (*GetObjectRequest) ProtoMessage()
func (*GetObjectRequest) ProtoReflect ¶
func (x *GetObjectRequest) ProtoReflect() protoreflect.Message
func (*GetObjectRequest) Reset ¶
func (x *GetObjectRequest) Reset()
func (*GetObjectRequest) String ¶
func (x *GetObjectRequest) String() string
func (*GetObjectRequest) Validate ¶
func (m *GetObjectRequest) Validate() error
Validate checks the field values on GetObjectRequest 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 (*GetObjectRequest) ValidateAll ¶
func (m *GetObjectRequest) ValidateAll() error
ValidateAll checks the field values on GetObjectRequest 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 GetObjectRequestMultiError, or nil if none found.
type GetObjectRequestMultiError ¶
type GetObjectRequestMultiError []error
GetObjectRequestMultiError is an error wrapping multiple validation errors returned by GetObjectRequest.ValidateAll() if the designated constraints aren't met.
func (GetObjectRequestMultiError) AllErrors ¶
func (m GetObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetObjectRequestMultiError) Error ¶
func (m GetObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetObjectRequestValidationError ¶
type GetObjectRequestValidationError struct {
// contains filtered or unexported fields
}
GetObjectRequestValidationError is the validation error returned by GetObjectRequest.Validate if the designated constraints aren't met.
func (GetObjectRequestValidationError) Cause ¶
func (e GetObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (GetObjectRequestValidationError) Error ¶
func (e GetObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetObjectRequestValidationError) ErrorName ¶
func (e GetObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetObjectRequestValidationError) Field ¶
func (e GetObjectRequestValidationError) Field() string
Field function returns field value.
func (GetObjectRequestValidationError) Key ¶
func (e GetObjectRequestValidationError) Key() bool
Key function returns key value.
func (GetObjectRequestValidationError) Reason ¶
func (e GetObjectRequestValidationError) Reason() string
Reason function returns reason value.
type Object ¶
type Object 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"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Api string `protobuf:"bytes,4,opt,name=api,proto3" json:"api,omitempty"` Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` Params string `protobuf:"bytes,6,opt,name=params,proto3" json:"params,omitempty"` Label string `protobuf:"bytes,7,opt,name=label,proto3" json:"label,omitempty"` Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"` Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` CreatedAt *uint32 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *uint32 `protobuf:"varint,11,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Object) Descriptor
deprecated
func (*Object) GetCreatedAt ¶
func (*Object) GetDescription ¶
func (*Object) GetKeyword ¶
func (*Object) GetUpdatedAt ¶
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
func (*Object) Validate ¶
Validate checks the field values on Object 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 (*Object) ValidateAll ¶
ValidateAll checks the field values on Object 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 ObjectMultiError, or nil if none found.
type ObjectMultiError ¶
type ObjectMultiError []error
ObjectMultiError is an error wrapping multiple validation errors returned by Object.ValidateAll() if the designated constraints aren't met.
func (ObjectMultiError) AllErrors ¶
func (m ObjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ObjectMultiError) Error ¶
func (m ObjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ObjectValidationError ¶
type ObjectValidationError struct {
// contains filtered or unexported fields
}
ObjectValidationError is the validation error returned by Object.Validate if the designated constraints aren't met.
func (ObjectValidationError) Cause ¶
func (e ObjectValidationError) Cause() error
Cause function returns cause value.
func (ObjectValidationError) Error ¶
func (e ObjectValidationError) Error() string
Error satisfies the builtin error interface
func (ObjectValidationError) ErrorName ¶
func (e ObjectValidationError) ErrorName() string
ErrorName returns error name.
func (ObjectValidationError) Field ¶
func (e ObjectValidationError) Field() string
Field function returns field value.
func (ObjectValidationError) Key ¶
func (e ObjectValidationError) Key() bool
Key function returns key value.
func (ObjectValidationError) Reason ¶
func (e ObjectValidationError) Reason() string
Reason function returns reason value.
type PageObjectReply ¶
type PageObjectReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Object `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageObjectReply) Descriptor
deprecated
func (*PageObjectReply) Descriptor() ([]byte, []int)
Deprecated: Use PageObjectReply.ProtoReflect.Descriptor instead.
func (*PageObjectReply) GetList ¶
func (x *PageObjectReply) GetList() []*Object
func (*PageObjectReply) GetTotal ¶
func (x *PageObjectReply) GetTotal() uint32
func (*PageObjectReply) ProtoMessage ¶
func (*PageObjectReply) ProtoMessage()
func (*PageObjectReply) ProtoReflect ¶
func (x *PageObjectReply) ProtoReflect() protoreflect.Message
func (*PageObjectReply) Reset ¶
func (x *PageObjectReply) Reset()
func (*PageObjectReply) String ¶
func (x *PageObjectReply) String() string
func (*PageObjectReply) Validate ¶
func (m *PageObjectReply) Validate() error
Validate checks the field values on PageObjectReply 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 (*PageObjectReply) ValidateAll ¶
func (m *PageObjectReply) ValidateAll() error
ValidateAll checks the field values on PageObjectReply 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 PageObjectReplyMultiError, or nil if none found.
type PageObjectReplyMultiError ¶
type PageObjectReplyMultiError []error
PageObjectReplyMultiError is an error wrapping multiple validation errors returned by PageObjectReply.ValidateAll() if the designated constraints aren't met.
func (PageObjectReplyMultiError) AllErrors ¶
func (m PageObjectReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageObjectReplyMultiError) Error ¶
func (m PageObjectReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageObjectReplyValidationError ¶
type PageObjectReplyValidationError struct {
// contains filtered or unexported fields
}
PageObjectReplyValidationError is the validation error returned by PageObjectReply.Validate if the designated constraints aren't met.
func (PageObjectReplyValidationError) Cause ¶
func (e PageObjectReplyValidationError) Cause() error
Cause function returns cause value.
func (PageObjectReplyValidationError) Error ¶
func (e PageObjectReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageObjectReplyValidationError) ErrorName ¶
func (e PageObjectReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageObjectReplyValidationError) Field ¶
func (e PageObjectReplyValidationError) Field() string
Field function returns field value.
func (PageObjectReplyValidationError) Key ¶
func (e PageObjectReplyValidationError) Key() bool
Key function returns key value.
func (PageObjectReplyValidationError) Reason ¶
func (e PageObjectReplyValidationError) Reason() string
Reason function returns reason value.
type PageObjectRequest ¶
type PageObjectRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Keyword *string `protobuf:"bytes,3,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PageObjectRequest) Descriptor
deprecated
func (*PageObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageObjectRequest.ProtoReflect.Descriptor instead.
func (*PageObjectRequest) GetKeyword ¶
func (x *PageObjectRequest) GetKeyword() string
func (*PageObjectRequest) GetName ¶
func (x *PageObjectRequest) GetName() string
func (*PageObjectRequest) GetPage ¶
func (x *PageObjectRequest) GetPage() uint32
func (*PageObjectRequest) GetPageSize ¶
func (x *PageObjectRequest) GetPageSize() uint32
func (*PageObjectRequest) ProtoMessage ¶
func (*PageObjectRequest) ProtoMessage()
func (*PageObjectRequest) ProtoReflect ¶
func (x *PageObjectRequest) ProtoReflect() protoreflect.Message
func (*PageObjectRequest) Reset ¶
func (x *PageObjectRequest) Reset()
func (*PageObjectRequest) String ¶
func (x *PageObjectRequest) String() string
func (*PageObjectRequest) Validate ¶
func (m *PageObjectRequest) Validate() error
Validate checks the field values on PageObjectRequest 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 (*PageObjectRequest) ValidateAll ¶
func (m *PageObjectRequest) ValidateAll() error
ValidateAll checks the field values on PageObjectRequest 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 PageObjectRequestMultiError, or nil if none found.
type PageObjectRequestMultiError ¶
type PageObjectRequestMultiError []error
PageObjectRequestMultiError is an error wrapping multiple validation errors returned by PageObjectRequest.ValidateAll() if the designated constraints aren't met.
func (PageObjectRequestMultiError) AllErrors ¶
func (m PageObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageObjectRequestMultiError) Error ¶
func (m PageObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageObjectRequestValidationError ¶
type PageObjectRequestValidationError struct {
// contains filtered or unexported fields
}
PageObjectRequestValidationError is the validation error returned by PageObjectRequest.Validate if the designated constraints aren't met.
func (PageObjectRequestValidationError) Cause ¶
func (e PageObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (PageObjectRequestValidationError) Error ¶
func (e PageObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageObjectRequestValidationError) ErrorName ¶
func (e PageObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageObjectRequestValidationError) Field ¶
func (e PageObjectRequestValidationError) Field() string
Field function returns field value.
func (PageObjectRequestValidationError) Key ¶
func (e PageObjectRequestValidationError) Key() bool
Key function returns key value.
func (PageObjectRequestValidationError) Reason ¶
func (e PageObjectRequestValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // GetObject 获取指定资源对象信息 GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*Object, error) // PageObject 分页获取资源对象信息 PageObject(ctx context.Context, in *PageObjectRequest, opts ...grpc.CallOption) (*PageObjectReply, error) // AddObject 删除资源对象信息 AddObject(ctx context.Context, in *AddObjectRequest, opts ...grpc.CallOption) (*AddObjectReply, error) // UpdateObject 更新资源对象信息 UpdateObject(ctx context.Context, in *UpdateObjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteObject 删除资源对象信息 DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddObject(ctx context.Context, req *AddObjectRequest, opts ...http.CallOption) (rsp *AddObjectReply, err error) DeleteObject(ctx context.Context, req *DeleteObjectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetObject(ctx context.Context, req *GetObjectRequest, opts ...http.CallOption) (rsp *Object, err error) PageObject(ctx context.Context, req *PageObjectRequest, opts ...http.CallOption) (rsp *PageObjectReply, err error) UpdateObject(ctx context.Context, req *UpdateObjectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddObject ¶
func (c *ServiceHTTPClientImpl) AddObject(ctx context.Context, in *AddObjectRequest, opts ...http.CallOption) (*AddObjectReply, error)
func (*ServiceHTTPClientImpl) DeleteObject ¶
func (c *ServiceHTTPClientImpl) DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetObject ¶
func (c *ServiceHTTPClientImpl) GetObject(ctx context.Context, in *GetObjectRequest, opts ...http.CallOption) (*Object, error)
func (*ServiceHTTPClientImpl) PageObject ¶
func (c *ServiceHTTPClientImpl) PageObject(ctx context.Context, in *PageObjectRequest, opts ...http.CallOption) (*PageObjectReply, error)
func (*ServiceHTTPClientImpl) UpdateObject ¶
func (c *ServiceHTTPClientImpl) UpdateObject(ctx context.Context, in *UpdateObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddObject AddObject 删除资源对象信息 AddObject(context.Context, *AddObjectRequest) (*AddObjectReply, error) // DeleteObject DeleteObject 删除资源对象信息 DeleteObject(context.Context, *DeleteObjectRequest) (*emptypb.Empty, error) // GetObject GetObject 获取指定资源对象信息 GetObject(context.Context, *GetObjectRequest) (*Object, error) // PageObject PageObject 分页获取资源对象信息 PageObject(context.Context, *PageObjectRequest) (*PageObjectReply, error) // UpdateObject UpdateObject 更新资源对象信息 UpdateObject(context.Context, *UpdateObjectRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { // GetObject 获取指定资源对象信息 GetObject(context.Context, *GetObjectRequest) (*Object, error) // PageObject 分页获取资源对象信息 PageObject(context.Context, *PageObjectRequest) (*PageObjectReply, error) // AddObject 删除资源对象信息 AddObject(context.Context, *AddObjectRequest) (*AddObjectReply, error) // UpdateObject 更新资源对象信息 UpdateObject(context.Context, *UpdateObjectRequest) (*emptypb.Empty, error) // DeleteObject 删除资源对象信息 DeleteObject(context.Context, *DeleteObjectRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddObject ¶
func (UnimplementedServiceServer) AddObject(context.Context, *AddObjectRequest) (*AddObjectReply, error)
func (UnimplementedServiceServer) DeleteObject ¶
func (UnimplementedServiceServer) DeleteObject(context.Context, *DeleteObjectRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetObject ¶
func (UnimplementedServiceServer) GetObject(context.Context, *GetObjectRequest) (*Object, error)
func (UnimplementedServiceServer) PageObject ¶
func (UnimplementedServiceServer) PageObject(context.Context, *PageObjectRequest) (*PageObjectReply, error)
func (UnimplementedServiceServer) UpdateObject ¶
func (UnimplementedServiceServer) UpdateObject(context.Context, *UpdateObjectRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateObjectRequest ¶
type UpdateObjectRequest struct { Id uint32 `protobuf:"varint,9,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Api string `protobuf:"bytes,3,opt,name=api,proto3" json:"api,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` Params *string `protobuf:"bytes,5,opt,name=params,proto3,oneof" json:"params,omitempty"` Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"` Value string `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateObjectRequest) Descriptor
deprecated
func (*UpdateObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateObjectRequest.ProtoReflect.Descriptor instead.
func (*UpdateObjectRequest) GetApi ¶
func (x *UpdateObjectRequest) GetApi() string
func (*UpdateObjectRequest) GetDescription ¶
func (x *UpdateObjectRequest) GetDescription() string
func (*UpdateObjectRequest) GetId ¶
func (x *UpdateObjectRequest) GetId() uint32
func (*UpdateObjectRequest) GetKeyword ¶
func (x *UpdateObjectRequest) GetKeyword() string
func (*UpdateObjectRequest) GetLabel ¶
func (x *UpdateObjectRequest) GetLabel() string
func (*UpdateObjectRequest) GetMethod ¶
func (x *UpdateObjectRequest) GetMethod() string
func (*UpdateObjectRequest) GetName ¶
func (x *UpdateObjectRequest) GetName() string
func (*UpdateObjectRequest) GetParams ¶
func (x *UpdateObjectRequest) GetParams() string
func (*UpdateObjectRequest) GetValue ¶
func (x *UpdateObjectRequest) GetValue() string
func (*UpdateObjectRequest) ProtoMessage ¶
func (*UpdateObjectRequest) ProtoMessage()
func (*UpdateObjectRequest) ProtoReflect ¶
func (x *UpdateObjectRequest) ProtoReflect() protoreflect.Message
func (*UpdateObjectRequest) Reset ¶
func (x *UpdateObjectRequest) Reset()
func (*UpdateObjectRequest) String ¶
func (x *UpdateObjectRequest) String() string
func (*UpdateObjectRequest) Validate ¶
func (m *UpdateObjectRequest) Validate() error
Validate checks the field values on UpdateObjectRequest 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 (*UpdateObjectRequest) ValidateAll ¶
func (m *UpdateObjectRequest) ValidateAll() error
ValidateAll checks the field values on UpdateObjectRequest 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 UpdateObjectRequestMultiError, or nil if none found.
type UpdateObjectRequestMultiError ¶
type UpdateObjectRequestMultiError []error
UpdateObjectRequestMultiError is an error wrapping multiple validation errors returned by UpdateObjectRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateObjectRequestMultiError) AllErrors ¶
func (m UpdateObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateObjectRequestMultiError) Error ¶
func (m UpdateObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateObjectRequestValidationError ¶
type UpdateObjectRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateObjectRequestValidationError is the validation error returned by UpdateObjectRequest.Validate if the designated constraints aren't met.
func (UpdateObjectRequestValidationError) Cause ¶
func (e UpdateObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateObjectRequestValidationError) Error ¶
func (e UpdateObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateObjectRequestValidationError) ErrorName ¶
func (e UpdateObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateObjectRequestValidationError) Field ¶
func (e UpdateObjectRequestValidationError) Field() string
Field function returns field value.
func (UpdateObjectRequestValidationError) Key ¶
func (e UpdateObjectRequestValidationError) Key() bool
Key function returns key value.
func (UpdateObjectRequestValidationError) Reason ¶
func (e UpdateObjectRequestValidationError) Reason() string
Reason function returns reason value.