keyword

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeywordRemoteService_FindGenre_FullMethodName = "/gnboot.KeywordRemoteService/FindGenre"
)
View Source
const OperationKeywordRemoteServiceFindGenre = "/gnboot.KeywordRemoteService/FindGenre"

Variables

View Source
var File_proto_keyword_proto protoreflect.FileDescriptor
View Source
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.

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

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

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.

Jump to

Keyboard shortcuts

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