keyword

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 25 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 {
	// contains filtered or unexported fields
}

func (*FindKeywordRequest) Descriptor deprecated

func (*FindKeywordRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindKeywordRequest.ProtoReflect.Descriptor instead.

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

func (*FindKeywordRequest) Validate

func (m *FindKeywordRequest) Validate() error

Validate checks the field values on FindKeywordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindKeywordRequest) ValidateAll

func (m *FindKeywordRequest) ValidateAll() error

ValidateAll checks the field values on FindKeywordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindKeywordRequestMultiError, or nil if none found.

type FindKeywordRequestMultiError

type FindKeywordRequestMultiError []error

FindKeywordRequestMultiError is an error wrapping multiple validation errors returned by FindKeywordRequest.ValidateAll() if the designated constraints aren't met.

func (FindKeywordRequestMultiError) AllErrors

func (m FindKeywordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindKeywordRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindKeywordRequestValidationError

type FindKeywordRequestValidationError struct {
	// contains filtered or unexported fields
}

FindKeywordRequestValidationError is the validation error returned by FindKeywordRequest.Validate if the designated constraints aren't met.

func (FindKeywordRequestValidationError) Cause

Cause function returns cause value.

func (FindKeywordRequestValidationError) Error

Error satisfies the builtin error interface

func (FindKeywordRequestValidationError) ErrorName

ErrorName returns error name.

func (FindKeywordRequestValidationError) Field

Field function returns field value.

func (FindKeywordRequestValidationError) Key

Key function returns key value.

func (FindKeywordRequestValidationError) Reason

Reason function returns reason value.

type FindKeywordResp

type FindKeywordResp struct {
	Keywords []*KeywordResp `protobuf:"bytes,1,rep,name=keywords,proto3" json:"keywords,omitempty"`
	// contains filtered or unexported fields
}

func (*FindKeywordResp) Descriptor deprecated

func (*FindKeywordResp) Descriptor() ([]byte, []int)

Deprecated: Use FindKeywordResp.ProtoReflect.Descriptor instead.

func (*FindKeywordResp) GetKeywords added in v1.0.6

func (x *FindKeywordResp) GetKeywords() []*KeywordResp

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

func (*FindKeywordResp) Validate

func (m *FindKeywordResp) Validate() error

Validate checks the field values on FindKeywordResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FindKeywordResp) ValidateAll

func (m *FindKeywordResp) ValidateAll() error

ValidateAll checks the field values on FindKeywordResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindKeywordRespMultiError, or nil if none found.

type FindKeywordRespMultiError

type FindKeywordRespMultiError []error

FindKeywordRespMultiError is an error wrapping multiple validation errors returned by FindKeywordResp.ValidateAll() if the designated constraints aren't met.

func (FindKeywordRespMultiError) AllErrors

func (m FindKeywordRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindKeywordRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindKeywordRespValidationError

type FindKeywordRespValidationError struct {
	// contains filtered or unexported fields
}

FindKeywordRespValidationError is the validation error returned by FindKeywordResp.Validate if the designated constraints aren't met.

func (FindKeywordRespValidationError) Cause

Cause function returns cause value.

func (FindKeywordRespValidationError) Error

Error satisfies the builtin error interface

func (FindKeywordRespValidationError) ErrorName

func (e FindKeywordRespValidationError) ErrorName() string

ErrorName returns error name.

func (FindKeywordRespValidationError) Field

Field function returns field value.

func (FindKeywordRespValidationError) Key

Key function returns key value.

func (FindKeywordRespValidationError) Reason

Reason function returns reason value.

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

func (*KeywordResp) Validate

func (m *KeywordResp) Validate() error

Validate checks the field values on KeywordResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*KeywordResp) ValidateAll

func (m *KeywordResp) ValidateAll() error

ValidateAll checks the field values on KeywordResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in KeywordRespMultiError, or nil if none found.

type KeywordRespMultiError

type KeywordRespMultiError []error

KeywordRespMultiError is an error wrapping multiple validation errors returned by KeywordResp.ValidateAll() if the designated constraints aren't met.

func (KeywordRespMultiError) AllErrors

func (m KeywordRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (KeywordRespMultiError) Error

func (m KeywordRespMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type KeywordRespValidationError

type KeywordRespValidationError struct {
	// contains filtered or unexported fields
}

KeywordRespValidationError is the validation error returned by KeywordResp.Validate if the designated constraints aren't met.

func (KeywordRespValidationError) Cause

Cause function returns cause value.

func (KeywordRespValidationError) Error

Error satisfies the builtin error interface

func (KeywordRespValidationError) ErrorName

func (e KeywordRespValidationError) ErrorName() string

ErrorName returns error name.

func (KeywordRespValidationError) Field

Field function returns field value.

func (KeywordRespValidationError) Key

Key function returns key value.

func (KeywordRespValidationError) Reason

Reason function returns reason value.

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