Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorMetadataNotFound(format string, args ...interface{}) *errors.Error
- func IsMetadataNotFound(err error) bool
- func RegisterMetadataServiceHTTPServer(s *http.Server, srv MetadataServiceHTTPServer)
- func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetMetadataRequest
- func (*GetMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetadataRequest) GetId() uint64
- func (*GetMetadataRequest) ProtoMessage()
- func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *GetMetadataRequest) Reset()
- func (x *GetMetadataRequest) String() string
- func (m *GetMetadataRequest) Validate() error
- func (m *GetMetadataRequest) ValidateAll() error
- type GetMetadataRequestMultiError
- type GetMetadataRequestValidationError
- func (e GetMetadataRequestValidationError) Cause() error
- func (e GetMetadataRequestValidationError) Error() string
- func (e GetMetadataRequestValidationError) ErrorName() string
- func (e GetMetadataRequestValidationError) Field() string
- func (e GetMetadataRequestValidationError) Key() bool
- func (e GetMetadataRequestValidationError) Reason() string
- type GetMetadataResponse
- func (*GetMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetadataResponse) GetDescription() string
- func (x *GetMetadataResponse) GetDirector() string
- func (x *GetMetadataResponse) GetId() uint64
- func (x *GetMetadataResponse) GetTitle() string
- func (*GetMetadataResponse) ProtoMessage()
- func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *GetMetadataResponse) Reset()
- func (x *GetMetadataResponse) String() string
- func (m *GetMetadataResponse) Validate() error
- func (m *GetMetadataResponse) ValidateAll() error
- type GetMetadataResponseMultiError
- type GetMetadataResponseValidationError
- func (e GetMetadataResponseValidationError) Cause() error
- func (e GetMetadataResponseValidationError) Error() string
- func (e GetMetadataResponseValidationError) ErrorName() string
- func (e GetMetadataResponseValidationError) Field() string
- func (e GetMetadataResponseValidationError) Key() bool
- func (e GetMetadataResponseValidationError) Reason() string
- type MetadataServiceClient
- type MetadataServiceHTTPClient
- type MetadataServiceHTTPClientImpl
- type MetadataServiceHTTPServer
- type MetadataServiceServer
- type UnimplementedMetadataServiceServer
- type UnsafeMetadataServiceServer
Constants ¶
const (
MetadataService_GetMetadata_FullMethodName = "/metadata.service.v1.MetadataService/GetMetadata"
)
const OperationMetadataServiceGetMetadata = "/metadata.service.v1.MetadataService/GetMetadata"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "METADATA_NOT_FOUND", } ErrorReason_value = map[string]int32{ "METADATA_NOT_FOUND": 0, } )
Enum value maps for ErrorReason.
var File_metadata_service_v1_metadata_error_proto protoreflect.FileDescriptor
var File_metadata_service_v1_metadata_proto protoreflect.FileDescriptor
var MetadataService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "metadata.service.v1.MetadataService", HandlerType: (*MetadataServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMetadata", Handler: _MetadataService_GetMetadata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "metadata/service/v1/metadata.proto", }
MetadataService_ServiceDesc is the grpc.ServiceDesc for MetadataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorMetadataNotFound ¶
func IsMetadataNotFound ¶
func RegisterMetadataServiceHTTPServer ¶
func RegisterMetadataServiceHTTPServer(s *http.Server, srv MetadataServiceHTTPServer)
func RegisterMetadataServiceServer ¶
func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
Types ¶
type ErrorReason ¶
type ErrorReason int32
const (
ErrorReason_METADATA_NOT_FOUND ErrorReason = 0
)
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetMetadataRequest ¶
type GetMetadataRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetMetadataRequest) Descriptor
deprecated
func (*GetMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetMetadataRequest) GetId ¶
func (x *GetMetadataRequest) GetId() uint64
func (*GetMetadataRequest) ProtoMessage ¶
func (*GetMetadataRequest) ProtoMessage()
func (*GetMetadataRequest) ProtoReflect ¶
func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message
func (*GetMetadataRequest) Reset ¶
func (x *GetMetadataRequest) Reset()
func (*GetMetadataRequest) String ¶
func (x *GetMetadataRequest) String() string
func (*GetMetadataRequest) Validate ¶
func (m *GetMetadataRequest) Validate() error
Validate checks the field values on GetMetadataRequest 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 (*GetMetadataRequest) ValidateAll ¶
func (m *GetMetadataRequest) ValidateAll() error
ValidateAll checks the field values on GetMetadataRequest 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 GetMetadataRequestMultiError, or nil if none found.
type GetMetadataRequestMultiError ¶
type GetMetadataRequestMultiError []error
GetMetadataRequestMultiError is an error wrapping multiple validation errors returned by GetMetadataRequest.ValidateAll() if the designated constraints aren't met.
func (GetMetadataRequestMultiError) AllErrors ¶
func (m GetMetadataRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMetadataRequestMultiError) Error ¶
func (m GetMetadataRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMetadataRequestValidationError ¶
type GetMetadataRequestValidationError struct {
// contains filtered or unexported fields
}
GetMetadataRequestValidationError is the validation error returned by GetMetadataRequest.Validate if the designated constraints aren't met.
func (GetMetadataRequestValidationError) Cause ¶
func (e GetMetadataRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMetadataRequestValidationError) Error ¶
func (e GetMetadataRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMetadataRequestValidationError) ErrorName ¶
func (e GetMetadataRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMetadataRequestValidationError) Field ¶
func (e GetMetadataRequestValidationError) Field() string
Field function returns field value.
func (GetMetadataRequestValidationError) Key ¶
func (e GetMetadataRequestValidationError) Key() bool
Key function returns key value.
func (GetMetadataRequestValidationError) Reason ¶
func (e GetMetadataRequestValidationError) Reason() string
Reason function returns reason value.
type GetMetadataResponse ¶
type GetMetadataResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Director string `protobuf:"bytes,4,opt,name=director,proto3" json:"director,omitempty"` // contains filtered or unexported fields }
func (*GetMetadataResponse) Descriptor
deprecated
func (*GetMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetMetadataResponse) GetDescription ¶
func (x *GetMetadataResponse) GetDescription() string
func (*GetMetadataResponse) GetDirector ¶
func (x *GetMetadataResponse) GetDirector() string
func (*GetMetadataResponse) GetId ¶
func (x *GetMetadataResponse) GetId() uint64
func (*GetMetadataResponse) GetTitle ¶
func (x *GetMetadataResponse) GetTitle() string
func (*GetMetadataResponse) ProtoMessage ¶
func (*GetMetadataResponse) ProtoMessage()
func (*GetMetadataResponse) ProtoReflect ¶
func (x *GetMetadataResponse) ProtoReflect() protoreflect.Message
func (*GetMetadataResponse) Reset ¶
func (x *GetMetadataResponse) Reset()
func (*GetMetadataResponse) String ¶
func (x *GetMetadataResponse) String() string
func (*GetMetadataResponse) Validate ¶
func (m *GetMetadataResponse) Validate() error
Validate checks the field values on GetMetadataResponse 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 (*GetMetadataResponse) ValidateAll ¶
func (m *GetMetadataResponse) ValidateAll() error
ValidateAll checks the field values on GetMetadataResponse 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 GetMetadataResponseMultiError, or nil if none found.
type GetMetadataResponseMultiError ¶
type GetMetadataResponseMultiError []error
GetMetadataResponseMultiError is an error wrapping multiple validation errors returned by GetMetadataResponse.ValidateAll() if the designated constraints aren't met.
func (GetMetadataResponseMultiError) AllErrors ¶
func (m GetMetadataResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMetadataResponseMultiError) Error ¶
func (m GetMetadataResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMetadataResponseValidationError ¶
type GetMetadataResponseValidationError struct {
// contains filtered or unexported fields
}
GetMetadataResponseValidationError is the validation error returned by GetMetadataResponse.Validate if the designated constraints aren't met.
func (GetMetadataResponseValidationError) Cause ¶
func (e GetMetadataResponseValidationError) Cause() error
Cause function returns cause value.
func (GetMetadataResponseValidationError) Error ¶
func (e GetMetadataResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetMetadataResponseValidationError) ErrorName ¶
func (e GetMetadataResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetMetadataResponseValidationError) Field ¶
func (e GetMetadataResponseValidationError) Field() string
Field function returns field value.
func (GetMetadataResponseValidationError) Key ¶
func (e GetMetadataResponseValidationError) Key() bool
Key function returns key value.
func (GetMetadataResponseValidationError) Reason ¶
func (e GetMetadataResponseValidationError) Reason() string
Reason function returns reason value.
type MetadataServiceClient ¶
type MetadataServiceClient interface {
GetMetadata(ctx context.Context, in *GetMetadataRequest, opts ...grpc.CallOption) (*GetMetadataResponse, error)
}
MetadataServiceClient is the client API for MetadataService 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 NewMetadataServiceClient ¶
func NewMetadataServiceClient(cc grpc.ClientConnInterface) MetadataServiceClient
type MetadataServiceHTTPClient ¶
type MetadataServiceHTTPClient interface {
GetMetadata(ctx context.Context, req *GetMetadataRequest, opts ...http.CallOption) (rsp *GetMetadataResponse, err error)
}
func NewMetadataServiceHTTPClient ¶
func NewMetadataServiceHTTPClient(client *http.Client) MetadataServiceHTTPClient
type MetadataServiceHTTPClientImpl ¶
type MetadataServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MetadataServiceHTTPClientImpl) GetMetadata ¶
func (c *MetadataServiceHTTPClientImpl) GetMetadata(ctx context.Context, in *GetMetadataRequest, opts ...http.CallOption) (*GetMetadataResponse, error)
type MetadataServiceHTTPServer ¶
type MetadataServiceHTTPServer interface {
GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error)
}
type MetadataServiceServer ¶
type MetadataServiceServer interface { GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error) // contains filtered or unexported methods }
MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility
type UnimplementedMetadataServiceServer ¶
type UnimplementedMetadataServiceServer struct { }
UnimplementedMetadataServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMetadataServiceServer) GetMetadata ¶
func (UnimplementedMetadataServiceServer) GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error)
type UnsafeMetadataServiceServer ¶
type UnsafeMetadataServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMetadataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServiceServer will result in compilation errors.