Documentation ¶
Overview ¶
Metadata UC. Infrastructure layer
Index ¶
- Constants
- Variables
- func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
- type Metadata
- type MetadataServiceClient
- type MetadataServiceGetRequest
- func (*MetadataServiceGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataServiceGetRequest) GetUrl() string
- func (*MetadataServiceGetRequest) ProtoMessage()
- func (x *MetadataServiceGetRequest) ProtoReflect() protoreflect.Message
- func (x *MetadataServiceGetRequest) Reset()
- func (x *MetadataServiceGetRequest) String() string
- type MetadataServiceGetResponse
- func (*MetadataServiceGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataServiceGetResponse) GetMeta() *v1.Meta
- func (*MetadataServiceGetResponse) ProtoMessage()
- func (x *MetadataServiceGetResponse) ProtoReflect() protoreflect.Message
- func (x *MetadataServiceGetResponse) Reset()
- func (x *MetadataServiceGetResponse) String() string
- type MetadataServiceServer
- type MetadataServiceSetRequest
- func (*MetadataServiceSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataServiceSetRequest) GetUrl() string
- func (*MetadataServiceSetRequest) ProtoMessage()
- func (x *MetadataServiceSetRequest) ProtoReflect() protoreflect.Message
- func (x *MetadataServiceSetRequest) Reset()
- func (x *MetadataServiceSetRequest) String() string
- type MetadataServiceSetResponse
- func (*MetadataServiceSetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataServiceSetResponse) GetMeta() *v1.Meta
- func (*MetadataServiceSetResponse) ProtoMessage()
- func (x *MetadataServiceSetResponse) ProtoReflect() protoreflect.Message
- func (x *MetadataServiceSetResponse) Reset()
- func (x *MetadataServiceSetResponse) String() string
- type UnimplementedMetadataServiceServer
- type UnsafeMetadataServiceServer
Constants ¶
const ( MetadataService_Get_FullMethodName = "/infrastructure.rpc.metadata.v1.MetadataService/Get" MetadataService_Set_FullMethodName = "/infrastructure.rpc.metadata.v1.MetadataService/Set" )
Variables ¶
var File_infrastructure_rpc_metadata_v1_metadata_rpc_proto protoreflect.FileDescriptor
var MetadataService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "infrastructure.rpc.metadata.v1.MetadataService", HandlerType: (*MetadataServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _MetadataService_Get_Handler, }, { MethodName: "Set", Handler: _MetadataService_Set_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "infrastructure/rpc/metadata/v1/metadata_rpc.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 RegisterMetadataServiceServer ¶
func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)
Types ¶
type Metadata ¶
type Metadata struct { MetadataServiceServer // contains filtered or unexported fields }
func (*Metadata) Get ¶
func (m *Metadata) Get(ctx context.Context, req *MetadataServiceGetRequest) (*MetadataServiceGetResponse, error)
func (*Metadata) Set ¶
func (m *Metadata) Set(ctx context.Context, req *MetadataServiceSetRequest) (*MetadataServiceSetResponse, error)
type MetadataServiceClient ¶
type MetadataServiceClient interface { // Get returns the metadata for the given URL. Get(ctx context.Context, in *MetadataServiceGetRequest, opts ...grpc.CallOption) (*MetadataServiceGetResponse, error) // Set sets the metadata for the given URL. Set(ctx context.Context, in *MetadataServiceSetRequest, opts ...grpc.CallOption) (*MetadataServiceSetResponse, 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 MetadataServiceGetRequest ¶
type MetadataServiceGetRequest struct { // URL is the URL to get the metadata for. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
MetadataServiceGetRequest is the request message for the Get method.
func (*MetadataServiceGetRequest) Descriptor
deprecated
func (*MetadataServiceGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use MetadataServiceGetRequest.ProtoReflect.Descriptor instead.
func (*MetadataServiceGetRequest) GetUrl ¶
func (x *MetadataServiceGetRequest) GetUrl() string
func (*MetadataServiceGetRequest) ProtoMessage ¶
func (*MetadataServiceGetRequest) ProtoMessage()
func (*MetadataServiceGetRequest) ProtoReflect ¶
func (x *MetadataServiceGetRequest) ProtoReflect() protoreflect.Message
func (*MetadataServiceGetRequest) Reset ¶
func (x *MetadataServiceGetRequest) Reset()
func (*MetadataServiceGetRequest) String ¶
func (x *MetadataServiceGetRequest) String() string
type MetadataServiceGetResponse ¶
type MetadataServiceGetResponse struct { // Meta is the metadata for the given URL. Meta *v1.Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
MetadataServiceGetResponse is the response message for the Get method.
func (*MetadataServiceGetResponse) Descriptor
deprecated
func (*MetadataServiceGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetadataServiceGetResponse.ProtoReflect.Descriptor instead.
func (*MetadataServiceGetResponse) GetMeta ¶
func (x *MetadataServiceGetResponse) GetMeta() *v1.Meta
func (*MetadataServiceGetResponse) ProtoMessage ¶
func (*MetadataServiceGetResponse) ProtoMessage()
func (*MetadataServiceGetResponse) ProtoReflect ¶
func (x *MetadataServiceGetResponse) ProtoReflect() protoreflect.Message
func (*MetadataServiceGetResponse) Reset ¶
func (x *MetadataServiceGetResponse) Reset()
func (*MetadataServiceGetResponse) String ¶
func (x *MetadataServiceGetResponse) String() string
type MetadataServiceServer ¶
type MetadataServiceServer interface { // Get returns the metadata for the given URL. Get(context.Context, *MetadataServiceGetRequest) (*MetadataServiceGetResponse, error) // Set sets the metadata for the given URL. Set(context.Context, *MetadataServiceSetRequest) (*MetadataServiceSetResponse, error) // contains filtered or unexported methods }
MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility
type MetadataServiceSetRequest ¶
type MetadataServiceSetRequest struct { // URL is the URL to set the metadata for. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
MetadataServiceSetRequest is the request message for the Set method.
func (*MetadataServiceSetRequest) Descriptor
deprecated
func (*MetadataServiceSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use MetadataServiceSetRequest.ProtoReflect.Descriptor instead.
func (*MetadataServiceSetRequest) GetUrl ¶
func (x *MetadataServiceSetRequest) GetUrl() string
func (*MetadataServiceSetRequest) ProtoMessage ¶
func (*MetadataServiceSetRequest) ProtoMessage()
func (*MetadataServiceSetRequest) ProtoReflect ¶
func (x *MetadataServiceSetRequest) ProtoReflect() protoreflect.Message
func (*MetadataServiceSetRequest) Reset ¶
func (x *MetadataServiceSetRequest) Reset()
func (*MetadataServiceSetRequest) String ¶
func (x *MetadataServiceSetRequest) String() string
type MetadataServiceSetResponse ¶
type MetadataServiceSetResponse struct { // Meta is the metadata for the given URL. Meta *v1.Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
MetadataServiceSetResponse is the response message for the Set method.
func (*MetadataServiceSetResponse) Descriptor
deprecated
func (*MetadataServiceSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetadataServiceSetResponse.ProtoReflect.Descriptor instead.
func (*MetadataServiceSetResponse) GetMeta ¶
func (x *MetadataServiceSetResponse) GetMeta() *v1.Meta
func (*MetadataServiceSetResponse) ProtoMessage ¶
func (*MetadataServiceSetResponse) ProtoMessage()
func (*MetadataServiceSetResponse) ProtoReflect ¶
func (x *MetadataServiceSetResponse) ProtoReflect() protoreflect.Message
func (*MetadataServiceSetResponse) Reset ¶
func (x *MetadataServiceSetResponse) Reset()
func (*MetadataServiceSetResponse) String ¶
func (x *MetadataServiceSetResponse) String() string
type UnimplementedMetadataServiceServer ¶
type UnimplementedMetadataServiceServer struct { }
UnimplementedMetadataServiceServer must be embedded to have forward compatible implementations.
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.