v1

package
v1.0.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationServiceAddObject = "/manager_object.Service/AddObject"
View Source
const OperationServiceDeleteObject = "/manager_object.Service/DeleteObject"
View Source
const OperationServiceGetObject = "/manager_object.Service/GetObject"
View Source
const OperationServicePageObject = "/manager_object.Service/PageObject"
View Source
const OperationServiceUpdateObject = "/manager_object.Service/UpdateObject"

Variables

View Source
var File_manager_object_proto protoreflect.FileDescriptor
View Source
var File_manager_object_service_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (AddObjectReplyValidationError) Error

Error satisfies the builtin error interface

func (AddObjectReplyValidationError) ErrorName

func (e AddObjectReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddObjectReplyValidationError) Field

Field function returns field value.

func (AddObjectReplyValidationError) Key

Key function returns key value.

func (AddObjectReplyValidationError) Reason

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

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

Cause function returns cause value.

func (AddObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (AddObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (AddObjectRequestValidationError) Field

Field function returns field value.

func (AddObjectRequestValidationError) Key

Key function returns key value.

func (AddObjectRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteObjectRequestValidationError) Field

Field function returns field value.

func (DeleteObjectRequestValidationError) Key

Key function returns key value.

func (DeleteObjectRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (GetObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (GetObjectRequestValidationError) Field

Field function returns field value.

func (GetObjectRequestValidationError) Key

Key function returns key value.

func (GetObjectRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Object.ProtoReflect.Descriptor instead.

func (*Object) GetApi

func (x *Object) GetApi() string

func (*Object) GetCreatedAt

func (x *Object) GetCreatedAt() uint32

func (*Object) GetDescription

func (x *Object) GetDescription() string

func (*Object) GetId

func (x *Object) GetId() uint32

func (*Object) GetKeyword

func (x *Object) GetKeyword() string

func (*Object) GetLabel

func (x *Object) GetLabel() string

func (*Object) GetMethod

func (x *Object) GetMethod() string

func (*Object) GetName

func (x *Object) GetName() string

func (*Object) GetParams

func (x *Object) GetParams() string

func (*Object) GetUpdatedAt

func (x *Object) GetUpdatedAt() uint32

func (*Object) GetValue

func (x *Object) GetValue() string

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) ProtoReflect

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

func (*Object) Reset

func (x *Object) Reset()

func (*Object) String

func (x *Object) String() string

func (*Object) Validate

func (m *Object) Validate() error

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

func (m *Object) ValidateAll() error

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

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

Cause function returns cause value.

func (PageObjectReplyValidationError) Error

Error satisfies the builtin error interface

func (PageObjectReplyValidationError) ErrorName

func (e PageObjectReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageObjectReplyValidationError) Field

Field function returns field value.

func (PageObjectReplyValidationError) Key

Key function returns key value.

func (PageObjectReplyValidationError) Reason

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

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

Cause function returns cause value.

func (PageObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (PageObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (PageObjectRequestValidationError) Field

Field function returns field value.

func (PageObjectRequestValidationError) Key

Key function returns key value.

func (PageObjectRequestValidationError) Reason

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 (*ServiceHTTPClientImpl) DeleteObject

func (*ServiceHTTPClientImpl) GetObject

func (c *ServiceHTTPClientImpl) GetObject(ctx context.Context, in *GetObjectRequest, opts ...http.CallOption) (*Object, error)

func (*ServiceHTTPClientImpl) PageObject

func (*ServiceHTTPClientImpl) UpdateObject

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) DeleteObject

func (UnimplementedServiceServer) GetObject

func (UnimplementedServiceServer) PageObject

func (UnimplementedServiceServer) UpdateObject

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

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

Cause function returns cause value.

func (UpdateObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateObjectRequestValidationError) Field

Field function returns field value.

func (UpdateObjectRequestValidationError) Key

Key function returns key value.

func (UpdateObjectRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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