Documentation ¶
Index ¶
- Variables
- func RegisterMetadataServer(s grpc.ServiceRegistrar, srv MetadataServer)
- type MetadataClient
- type MetadataReply
- func (*MetadataReply) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataReply) GetAuthors() string
- func (x *MetadataReply) GetCategories() string
- func (x *MetadataReply) GetDescription() string
- func (x *MetadataReply) GetImageLinks() string
- func (x *MetadataReply) GetLanguage() string
- func (x *MetadataReply) GetMaturityRating() string
- func (x *MetadataReply) GetPageCount() string
- func (x *MetadataReply) GetPublishedDate() string
- func (x *MetadataReply) GetPublisher() string
- func (x *MetadataReply) GetTitle() string
- func (*MetadataReply) ProtoMessage()
- func (x *MetadataReply) ProtoReflect() protoreflect.Message
- func (x *MetadataReply) Reset()
- func (x *MetadataReply) String() string
- type MetadataRequest
- func (*MetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataRequest) GetAuthors() string
- func (x *MetadataRequest) GetTitle() string
- func (*MetadataRequest) ProtoMessage()
- func (x *MetadataRequest) ProtoReflect() protoreflect.Message
- func (x *MetadataRequest) Reset()
- func (x *MetadataRequest) String() string
- type MetadataServer
- type UnimplementedMetadataServer
- type UnsafeMetadataServer
Constants ¶
This section is empty.
Variables ¶
var File_protocol_metadata_proto protoreflect.FileDescriptor
var Metadata_ServiceDesc = grpc.ServiceDesc{ ServiceName: "metadata.Metadata", HandlerType: (*MetadataServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Metadata", Handler: _Metadata_Metadata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protocol/metadata.proto", }
Metadata_ServiceDesc is the grpc.ServiceDesc for Metadata service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetadataServer ¶
func RegisterMetadataServer(s grpc.ServiceRegistrar, srv MetadataServer)
Types ¶
type MetadataClient ¶
type MetadataClient interface { // Used to check a JWT and retrieve the corresponding user. Metadata(ctx context.Context, in *MetadataRequest, opts ...grpc.CallOption) (*MetadataReply, error) }
MetadataClient is the client API for Metadata 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 NewMetadataClient ¶
func NewMetadataClient(cc grpc.ClientConnInterface) MetadataClient
type MetadataReply ¶
type MetadataReply struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"` Authors string `protobuf:"bytes,2,opt,name=Authors,proto3" json:"Authors,omitempty"` Publisher string `protobuf:"bytes,3,opt,name=Publisher,proto3" json:"Publisher,omitempty"` PublishedDate string `protobuf:"bytes,4,opt,name=PublishedDate,proto3" json:"PublishedDate,omitempty"` PageCount string `protobuf:"bytes,5,opt,name=PageCount,proto3" json:"PageCount,omitempty"` Categories string `protobuf:"bytes,6,opt,name=Categories,proto3" json:"Categories,omitempty"` MaturityRating string `protobuf:"bytes,7,opt,name=MaturityRating,proto3" json:"MaturityRating,omitempty"` Language string `protobuf:"bytes,8,opt,name=Language,proto3" json:"Language,omitempty"` ImageLinks string `protobuf:"bytes,9,opt,name=ImageLinks,proto3" json:"ImageLinks,omitempty"` Description string `protobuf:"bytes,10,opt,name=Description,proto3" json:"Description,omitempty"` // contains filtered or unexported fields }
func (*MetadataReply) Descriptor
deprecated
func (*MetadataReply) Descriptor() ([]byte, []int)
Deprecated: Use MetadataReply.ProtoReflect.Descriptor instead.
func (*MetadataReply) GetAuthors ¶
func (x *MetadataReply) GetAuthors() string
func (*MetadataReply) GetCategories ¶
func (x *MetadataReply) GetCategories() string
func (*MetadataReply) GetDescription ¶
func (x *MetadataReply) GetDescription() string
func (*MetadataReply) GetImageLinks ¶
func (x *MetadataReply) GetImageLinks() string
func (*MetadataReply) GetLanguage ¶
func (x *MetadataReply) GetLanguage() string
func (*MetadataReply) GetMaturityRating ¶
func (x *MetadataReply) GetMaturityRating() string
func (*MetadataReply) GetPageCount ¶
func (x *MetadataReply) GetPageCount() string
func (*MetadataReply) GetPublishedDate ¶
func (x *MetadataReply) GetPublishedDate() string
func (*MetadataReply) GetPublisher ¶
func (x *MetadataReply) GetPublisher() string
func (*MetadataReply) GetTitle ¶
func (x *MetadataReply) GetTitle() string
func (*MetadataReply) ProtoMessage ¶
func (*MetadataReply) ProtoMessage()
func (*MetadataReply) ProtoReflect ¶
func (x *MetadataReply) ProtoReflect() protoreflect.Message
func (*MetadataReply) Reset ¶
func (x *MetadataReply) Reset()
func (*MetadataReply) String ¶
func (x *MetadataReply) String() string
type MetadataRequest ¶
type MetadataRequest struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"` Authors string `protobuf:"bytes,2,opt,name=Authors,proto3" json:"Authors,omitempty"` // contains filtered or unexported fields }
func (*MetadataRequest) Descriptor
deprecated
func (*MetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use MetadataRequest.ProtoReflect.Descriptor instead.
func (*MetadataRequest) GetAuthors ¶
func (x *MetadataRequest) GetAuthors() string
func (*MetadataRequest) GetTitle ¶
func (x *MetadataRequest) GetTitle() string
func (*MetadataRequest) ProtoMessage ¶
func (*MetadataRequest) ProtoMessage()
func (*MetadataRequest) ProtoReflect ¶
func (x *MetadataRequest) ProtoReflect() protoreflect.Message
func (*MetadataRequest) Reset ¶
func (x *MetadataRequest) Reset()
func (*MetadataRequest) String ¶
func (x *MetadataRequest) String() string
type MetadataServer ¶
type MetadataServer interface { // Used to check a JWT and retrieve the corresponding user. Metadata(context.Context, *MetadataRequest) (*MetadataReply, error) // contains filtered or unexported methods }
MetadataServer is the server API for Metadata service. All implementations must embed UnimplementedMetadataServer for forward compatibility
type UnimplementedMetadataServer ¶
type UnimplementedMetadataServer struct { }
UnimplementedMetadataServer must be embedded to have forward compatible implementations.
func (UnimplementedMetadataServer) Metadata ¶
func (UnimplementedMetadataServer) Metadata(context.Context, *MetadataRequest) (*MetadataReply, error)
type UnsafeMetadataServer ¶
type UnsafeMetadataServer interface {
// contains filtered or unexported methods
}
UnsafeMetadataServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetadataServer will result in compilation errors.