v1

package
v0.0.0-...-f12ea2b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Unlicense Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataService_GetMetadata_FullMethodName = "/metadata.service.v1.MetadataService/GetMetadata"
)
View Source
const OperationMetadataServiceGetMetadata = "/metadata.service.v1.MetadataService/GetMetadata"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "METADATA_NOT_FOUND",
	}
	ErrorReason_value = map[string]int32{
		"METADATA_NOT_FOUND": 0,
	}
)

Enum value maps for ErrorReason.

View Source
var File_metadata_service_v1_metadata_error_proto protoreflect.FileDescriptor
View Source
var File_metadata_service_v1_metadata_proto protoreflect.FileDescriptor
View Source
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 ErrorMetadataNotFound(format string, args ...interface{}) *errors.Error

func IsMetadataNotFound

func IsMetadataNotFound(err error) bool

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

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

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

Cause function returns cause value.

func (GetMetadataRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMetadataRequestValidationError) ErrorName

ErrorName returns error name.

func (GetMetadataRequestValidationError) Field

Field function returns field value.

func (GetMetadataRequestValidationError) Key

Key function returns key value.

func (GetMetadataRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetMetadataResponseValidationError) Error

Error satisfies the builtin error interface

func (GetMetadataResponseValidationError) ErrorName

ErrorName returns error name.

func (GetMetadataResponseValidationError) Field

Field function returns field value.

func (GetMetadataResponseValidationError) Key

Key function returns key value.

func (GetMetadataResponseValidationError) Reason

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.

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

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

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.

Jump to

Keyboard shortcuts

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