v1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fetch_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "fetchnews.kyodonews.v1.Fetch",
	HandlerType: (*FetchServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListArticles",
			Handler:    _Fetch_ListArticles_Handler,
		},
		{
			MethodName: "GetArticle",
			Handler:    _Fetch_GetArticle_Handler,
		},
		{
			MethodName: "SearchArticles",
			Handler:    _Fetch_SearchArticles_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/fetchnews/kyodonews/v1/fetchnews.proto",
}

Fetch_ServiceDesc is the grpc.ServiceDesc for Fetch 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_api_fetchnews_kyodonews_v1_fetchnews_proto protoreflect.FileDescriptor

Functions

func RegisterFetchServer

func RegisterFetchServer(s grpc.ServiceRegistrar, srv FetchServer)

Types

type FetchClient

type FetchClient interface {
	ListArticles(ctx context.Context, in *v1.ListArticlesRequest, opts ...grpc.CallOption) (*v1.ListArticlesResponse, error)
	GetArticle(ctx context.Context, in *v1.GetArticleRequest, opts ...grpc.CallOption) (*v1.Article, error)
	SearchArticles(ctx context.Context, in *v1.SearchArticlesRequest, opts ...grpc.CallOption) (*v1.SearchArticlesResponse, error)
}

FetchClient is the client API for Fetch 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 NewFetchClient

func NewFetchClient(cc grpc.ClientConnInterface) FetchClient

type FetchServer

type FetchServer interface {
	ListArticles(context.Context, *v1.ListArticlesRequest) (*v1.ListArticlesResponse, error)
	GetArticle(context.Context, *v1.GetArticleRequest) (*v1.Article, error)
	SearchArticles(context.Context, *v1.SearchArticlesRequest) (*v1.SearchArticlesResponse, error)
	// contains filtered or unexported methods
}

FetchServer is the server API for Fetch service. All implementations must embed UnimplementedFetchServer for forward compatibility

type UnimplementedFetchServer

type UnimplementedFetchServer struct {
}

UnimplementedFetchServer must be embedded to have forward compatible implementations.

func (UnimplementedFetchServer) GetArticle

func (UnimplementedFetchServer) ListArticles

func (UnimplementedFetchServer) SearchArticles

type UnsafeFetchServer

type UnsafeFetchServer interface {
	// contains filtered or unexported methods
}

UnsafeFetchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FetchServer will result in compilation errors.

Jump to

Keyboard shortcuts

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