Documentation ¶
Index ¶
- Variables
- func RegisterLinkMetadataServiceServer(s grpc.ServiceRegistrar, srv LinkMetadataServiceServer)
- type GetLinkMetadataRequest
- func (*GetLinkMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLinkMetadataRequest) GetLink() string
- func (*GetLinkMetadataRequest) ProtoMessage()
- func (x *GetLinkMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *GetLinkMetadataRequest) Reset()
- func (x *GetLinkMetadataRequest) String() string
- type GetLinkMetadataResponse
- func (*GetLinkMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLinkMetadataResponse) GetDescription() string
- func (x *GetLinkMetadataResponse) GetHost() string
- func (x *GetLinkMetadataResponse) GetImageUrl() string
- func (x *GetLinkMetadataResponse) GetTitle() string
- func (*GetLinkMetadataResponse) ProtoMessage()
- func (x *GetLinkMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *GetLinkMetadataResponse) Reset()
- func (x *GetLinkMetadataResponse) String() string
- type LinkMetadataServiceClient
- type LinkMetadataServiceServer
- type UnimplementedLinkMetadataServiceServer
- type UnsafeLinkMetadataServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_linkmetadata_api_linkmetadata_v1_linkmetadata_proto protoreflect.FileDescriptor
var LinkMetadataService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "linkmetadata.v1.LinkMetadataService", HandlerType: (*LinkMetadataServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetLinkMetadata", Handler: _LinkMetadataService_GetLinkMetadata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "linkmetadata-api/linkmetadata/v1/linkmetadata.proto", }
LinkMetadataService_ServiceDesc is the grpc.ServiceDesc for LinkMetadataService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLinkMetadataServiceServer ¶ added in v0.2.11
func RegisterLinkMetadataServiceServer(s grpc.ServiceRegistrar, srv LinkMetadataServiceServer)
Types ¶
type GetLinkMetadataRequest ¶ added in v0.2.11
type GetLinkMetadataRequest struct { Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` // contains filtered or unexported fields }
func (*GetLinkMetadataRequest) Descriptor
deprecated
added in
v0.2.11
func (*GetLinkMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLinkMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetLinkMetadataRequest) GetLink ¶ added in v0.2.11
func (x *GetLinkMetadataRequest) GetLink() string
func (*GetLinkMetadataRequest) ProtoMessage ¶ added in v0.2.11
func (*GetLinkMetadataRequest) ProtoMessage()
func (*GetLinkMetadataRequest) ProtoReflect ¶ added in v0.2.11
func (x *GetLinkMetadataRequest) ProtoReflect() protoreflect.Message
func (*GetLinkMetadataRequest) Reset ¶ added in v0.2.11
func (x *GetLinkMetadataRequest) Reset()
func (*GetLinkMetadataRequest) String ¶ added in v0.2.11
func (x *GetLinkMetadataRequest) String() string
type GetLinkMetadataResponse ¶ added in v0.2.11
type GetLinkMetadataResponse struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ImageUrl string `protobuf:"bytes,4,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` // contains filtered or unexported fields }
func (*GetLinkMetadataResponse) Descriptor
deprecated
added in
v0.2.11
func (*GetLinkMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLinkMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetLinkMetadataResponse) GetDescription ¶ added in v0.2.11
func (x *GetLinkMetadataResponse) GetDescription() string
func (*GetLinkMetadataResponse) GetHost ¶ added in v0.2.11
func (x *GetLinkMetadataResponse) GetHost() string
func (*GetLinkMetadataResponse) GetImageUrl ¶ added in v0.2.11
func (x *GetLinkMetadataResponse) GetImageUrl() string
func (*GetLinkMetadataResponse) GetTitle ¶ added in v0.2.11
func (x *GetLinkMetadataResponse) GetTitle() string
func (*GetLinkMetadataResponse) ProtoMessage ¶ added in v0.2.11
func (*GetLinkMetadataResponse) ProtoMessage()
func (*GetLinkMetadataResponse) ProtoReflect ¶ added in v0.2.11
func (x *GetLinkMetadataResponse) ProtoReflect() protoreflect.Message
func (*GetLinkMetadataResponse) Reset ¶ added in v0.2.11
func (x *GetLinkMetadataResponse) Reset()
func (*GetLinkMetadataResponse) String ¶ added in v0.2.11
func (x *GetLinkMetadataResponse) String() string
type LinkMetadataServiceClient ¶ added in v0.2.11
type LinkMetadataServiceClient interface {
GetLinkMetadata(ctx context.Context, in *GetLinkMetadataRequest, opts ...grpc.CallOption) (*GetLinkMetadataResponse, error)
}
LinkMetadataServiceClient is the client API for LinkMetadataService 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 NewLinkMetadataServiceClient ¶ added in v0.2.11
func NewLinkMetadataServiceClient(cc grpc.ClientConnInterface) LinkMetadataServiceClient
type LinkMetadataServiceServer ¶ added in v0.2.11
type LinkMetadataServiceServer interface { GetLinkMetadata(context.Context, *GetLinkMetadataRequest) (*GetLinkMetadataResponse, error) // contains filtered or unexported methods }
LinkMetadataServiceServer is the server API for LinkMetadataService service. All implementations must embed UnimplementedLinkMetadataServiceServer for forward compatibility
type UnimplementedLinkMetadataServiceServer ¶ added in v0.2.11
type UnimplementedLinkMetadataServiceServer struct { }
UnimplementedLinkMetadataServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLinkMetadataServiceServer) GetLinkMetadata ¶ added in v0.2.12
func (UnimplementedLinkMetadataServiceServer) GetLinkMetadata(context.Context, *GetLinkMetadataRequest) (*GetLinkMetadataResponse, error)
type UnsafeLinkMetadataServiceServer ¶ added in v0.2.11
type UnsafeLinkMetadataServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLinkMetadataServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LinkMetadataServiceServer will result in compilation errors.