Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SearchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "search.SearchService", HandlerType: (*SearchServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSearch", Handler: _SearchService_GetSearch_Handler, }, { MethodName: "PostSearch", Handler: _SearchService_PostSearch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/search/search.proto", }
SearchService_ServiceDesc is the grpc.ServiceDesc for SearchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSearchServiceServer ¶
func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)
Types ¶
type SearchServiceClient ¶
type SearchServiceClient interface { // Get search GetSearch(ctx context.Context, in *Search, opts ...grpc.CallOption) (*SearchResponse, error) // Post search PostSearch(ctx context.Context, in *Search, opts ...grpc.CallOption) (*SearchResponse, error) }
SearchServiceClient is the client API for SearchService 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 NewSearchServiceClient ¶
func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient
type SearchServiceServer ¶
type SearchServiceServer interface { // Get search GetSearch(context.Context, *Search) (*SearchResponse, error) // Post search PostSearch(context.Context, *Search) (*SearchResponse, error) // contains filtered or unexported methods }
SearchServiceServer is the server API for SearchService service. All implementations must embed UnimplementedSearchServiceServer for forward compatibility
type UnimplementedSearchServiceServer ¶
type UnimplementedSearchServiceServer struct { }
UnimplementedSearchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchServiceServer) GetSearch ¶
func (UnimplementedSearchServiceServer) GetSearch(context.Context, *Search) (*SearchResponse, error)
func (UnimplementedSearchServiceServer) PostSearch ¶
func (UnimplementedSearchServiceServer) PostSearch(context.Context, *Search) (*SearchResponse, error)
type UnsafeSearchServiceServer ¶
type UnsafeSearchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSearchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchServiceServer will result in compilation errors.