Documentation ¶
Index ¶
- Variables
- func RegisterContentFetcherServiceServer(s grpc.ServiceRegistrar, srv ContentFetcherServiceServer)
- type ContentFetcherServiceClient
- type ContentFetcherServiceServer
- type GetContentRequest
- type GetContentResponse
- func (*GetContentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContentResponse) GetData() string
- func (*GetContentResponse) ProtoMessage()
- func (x *GetContentResponse) ProtoReflect() protoreflect.Message
- func (x *GetContentResponse) Reset()
- func (x *GetContentResponse) String() string
- type UnimplementedContentFetcherServiceServer
- type UnsafeContentFetcherServiceServer
Constants ¶
This section is empty.
Variables ¶
var ContentFetcherService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cf.ContentFetcherService", HandlerType: (*ContentFetcherServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetContent", Handler: _ContentFetcherService_GetContent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "content-fetcher.proto", }
ContentFetcherService_ServiceDesc is the grpc.ServiceDesc for ContentFetcherService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_content_fetcher_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContentFetcherServiceServer ¶
func RegisterContentFetcherServiceServer(s grpc.ServiceRegistrar, srv ContentFetcherServiceServer)
Types ¶
type ContentFetcherServiceClient ¶
type ContentFetcherServiceClient interface {
GetContent(ctx context.Context, in *GetContentRequest, opts ...grpc.CallOption) (*GetContentResponse, error)
}
ContentFetcherServiceClient is the client API for ContentFetcherService 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 NewContentFetcherServiceClient ¶
func NewContentFetcherServiceClient(cc grpc.ClientConnInterface) ContentFetcherServiceClient
type ContentFetcherServiceServer ¶
type ContentFetcherServiceServer interface { GetContent(context.Context, *GetContentRequest) (*GetContentResponse, error) // contains filtered or unexported methods }
ContentFetcherServiceServer is the server API for ContentFetcherService service. All implementations must embed UnimplementedContentFetcherServiceServer for forward compatibility
type GetContentRequest ¶
type GetContentRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*GetContentRequest) Descriptor
deprecated
func (*GetContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetContentRequest.ProtoReflect.Descriptor instead.
func (*GetContentRequest) GetPath ¶
func (x *GetContentRequest) GetPath() string
func (*GetContentRequest) ProtoMessage ¶
func (*GetContentRequest) ProtoMessage()
func (*GetContentRequest) ProtoReflect ¶
func (x *GetContentRequest) ProtoReflect() protoreflect.Message
func (*GetContentRequest) Reset ¶
func (x *GetContentRequest) Reset()
func (*GetContentRequest) String ¶
func (x *GetContentRequest) String() string
type GetContentResponse ¶
type GetContentResponse struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetContentResponse) Descriptor
deprecated
func (*GetContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetContentResponse.ProtoReflect.Descriptor instead.
func (*GetContentResponse) GetData ¶
func (x *GetContentResponse) GetData() string
func (*GetContentResponse) ProtoMessage ¶
func (*GetContentResponse) ProtoMessage()
func (*GetContentResponse) ProtoReflect ¶
func (x *GetContentResponse) ProtoReflect() protoreflect.Message
func (*GetContentResponse) Reset ¶
func (x *GetContentResponse) Reset()
func (*GetContentResponse) String ¶
func (x *GetContentResponse) String() string
type UnimplementedContentFetcherServiceServer ¶
type UnimplementedContentFetcherServiceServer struct { }
UnimplementedContentFetcherServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedContentFetcherServiceServer) GetContent ¶
func (UnimplementedContentFetcherServiceServer) GetContent(context.Context, *GetContentRequest) (*GetContentResponse, error)
type UnsafeContentFetcherServiceServer ¶
type UnsafeContentFetcherServiceServer interface {
// contains filtered or unexported methods
}
UnsafeContentFetcherServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContentFetcherServiceServer will result in compilation errors.