Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterKeywordRemoteServiceHTTPServer(s *http.Server, srv KeywordRemoteServiceHTTPServer)
- func RegisterKeywordRemoteServiceServer(s grpc.ServiceRegistrar, srv KeywordRemoteServiceServer)
- type FindKeywordRequest
- func (*FindKeywordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindKeywordRequest) GetPage() *params.Page
- func (*FindKeywordRequest) ProtoMessage()
- func (x *FindKeywordRequest) ProtoReflect() protoreflect.Message
- func (x *FindKeywordRequest) Reset()
- func (x *FindKeywordRequest) String() string
- type FindKeywordResp
- type KeywordRemoteServiceClient
- type KeywordRemoteServiceHTTPClient
- type KeywordRemoteServiceHTTPClientImpl
- type KeywordRemoteServiceHTTPServer
- type KeywordRemoteServiceServer
- type KeywordResp
- type UnimplementedKeywordRemoteServiceServer
- type UnsafeKeywordRemoteServiceServer
Constants ¶
const (
KeywordRemoteService_FindGenre_FullMethodName = "/gnboot.KeywordRemoteService/FindGenre"
)
const OperationKeywordRemoteServiceFindGenre = "/gnboot.KeywordRemoteService/FindGenre"
Variables ¶
var File_proto_keyword_proto protoreflect.FileDescriptor
var KeywordRemoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnboot.KeywordRemoteService", HandlerType: (*KeywordRemoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindGenre", Handler: _KeywordRemoteService_FindGenre_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/keyword.proto", }
KeywordRemoteService_ServiceDesc is the grpc.ServiceDesc for KeywordRemoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeywordRemoteServiceHTTPServer ¶
func RegisterKeywordRemoteServiceHTTPServer(s *http.Server, srv KeywordRemoteServiceHTTPServer)
func RegisterKeywordRemoteServiceServer ¶
func RegisterKeywordRemoteServiceServer(s grpc.ServiceRegistrar, srv KeywordRemoteServiceServer)
Types ¶
type FindKeywordRequest ¶
type FindKeywordRequest struct { Page *params.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*FindKeywordRequest) Descriptor
deprecated
func (*FindKeywordRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindKeywordRequest.ProtoReflect.Descriptor instead.
func (*FindKeywordRequest) GetPage ¶
func (x *FindKeywordRequest) GetPage() *params.Page
func (*FindKeywordRequest) ProtoMessage ¶
func (*FindKeywordRequest) ProtoMessage()
func (*FindKeywordRequest) ProtoReflect ¶
func (x *FindKeywordRequest) ProtoReflect() protoreflect.Message
func (*FindKeywordRequest) Reset ¶
func (x *FindKeywordRequest) Reset()
func (*FindKeywordRequest) String ¶
func (x *FindKeywordRequest) String() string
type FindKeywordResp ¶
type FindKeywordResp struct { Page *params.Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*FindKeywordResp) Descriptor
deprecated
func (*FindKeywordResp) Descriptor() ([]byte, []int)
Deprecated: Use FindKeywordResp.ProtoReflect.Descriptor instead.
func (*FindKeywordResp) GetPage ¶
func (x *FindKeywordResp) GetPage() *params.Page
func (*FindKeywordResp) ProtoMessage ¶
func (*FindKeywordResp) ProtoMessage()
func (*FindKeywordResp) ProtoReflect ¶
func (x *FindKeywordResp) ProtoReflect() protoreflect.Message
func (*FindKeywordResp) Reset ¶
func (x *FindKeywordResp) Reset()
func (*FindKeywordResp) String ¶
func (x *FindKeywordResp) String() string
type KeywordRemoteServiceClient ¶
type KeywordRemoteServiceClient interface {
FindGenre(ctx context.Context, in *FindKeywordRequest, opts ...grpc.CallOption) (*FindKeywordResp, error)
}
KeywordRemoteServiceClient is the client API for KeywordRemoteService 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 NewKeywordRemoteServiceClient ¶
func NewKeywordRemoteServiceClient(cc grpc.ClientConnInterface) KeywordRemoteServiceClient
type KeywordRemoteServiceHTTPClient ¶
type KeywordRemoteServiceHTTPClient interface {
FindGenre(ctx context.Context, req *FindKeywordRequest, opts ...http.CallOption) (rsp *FindKeywordResp, err error)
}
func NewKeywordRemoteServiceHTTPClient ¶
func NewKeywordRemoteServiceHTTPClient(client *http.Client) KeywordRemoteServiceHTTPClient
type KeywordRemoteServiceHTTPClientImpl ¶
type KeywordRemoteServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*KeywordRemoteServiceHTTPClientImpl) FindGenre ¶
func (c *KeywordRemoteServiceHTTPClientImpl) FindGenre(ctx context.Context, in *FindKeywordRequest, opts ...http.CallOption) (*FindKeywordResp, error)
type KeywordRemoteServiceHTTPServer ¶
type KeywordRemoteServiceHTTPServer interface {
FindGenre(context.Context, *FindKeywordRequest) (*FindKeywordResp, error)
}
type KeywordRemoteServiceServer ¶
type KeywordRemoteServiceServer interface { FindGenre(context.Context, *FindKeywordRequest) (*FindKeywordResp, error) // contains filtered or unexported methods }
KeywordRemoteServiceServer is the server API for KeywordRemoteService service. All implementations must embed UnimplementedKeywordRemoteServiceServer for forward compatibility
type KeywordResp ¶
type KeywordResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*KeywordResp) Descriptor
deprecated
func (*KeywordResp) Descriptor() ([]byte, []int)
Deprecated: Use KeywordResp.ProtoReflect.Descriptor instead.
func (*KeywordResp) GetId ¶
func (x *KeywordResp) GetId() int64
func (*KeywordResp) GetName ¶
func (x *KeywordResp) GetName() string
func (*KeywordResp) ProtoMessage ¶
func (*KeywordResp) ProtoMessage()
func (*KeywordResp) ProtoReflect ¶
func (x *KeywordResp) ProtoReflect() protoreflect.Message
func (*KeywordResp) Reset ¶
func (x *KeywordResp) Reset()
func (*KeywordResp) String ¶
func (x *KeywordResp) String() string
type UnimplementedKeywordRemoteServiceServer ¶
type UnimplementedKeywordRemoteServiceServer struct { }
UnimplementedKeywordRemoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedKeywordRemoteServiceServer) FindGenre ¶
func (UnimplementedKeywordRemoteServiceServer) FindGenre(context.Context, *FindKeywordRequest) (*FindKeywordResp, error)
type UnsafeKeywordRemoteServiceServer ¶
type UnsafeKeywordRemoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKeywordRemoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeywordRemoteServiceServer will result in compilation errors.