cf

package
v0.0.0-...-f6108e4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
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.

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

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.

Jump to

Keyboard shortcuts

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