Versions in this module Expand all Collapse all v0 v0.16.0 Aug 4, 2023 Changes in this version + func RegisterBookServiceServer(s *grpc.Server, srv BookServiceServer) + type Book struct + Author string + Isbn int64 + Title string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Book) Descriptor() ([]byte, []int) + func (*Book) ProtoMessage() + func (m *Book) GetAuthor() string + func (m *Book) GetIsbn() int64 + func (m *Book) GetTitle() string + func (m *Book) Reset() + func (m *Book) String() string + func (m *Book) XXX_DiscardUnknown() + func (m *Book) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Book) XXX_Merge(src proto.Message) + func (m *Book) XXX_Size() int + func (m *Book) XXX_Unmarshal(b []byte) error + type BookServiceClient interface + GetBook func(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*Book, error) + QueryBooks func(ctx context.Context, in *QueryBooksRequest, opts ...grpc.CallOption) (BookService_QueryBooksClient, error) + func NewBookServiceClient(cc *grpc.ClientConn) BookServiceClient + type BookServiceServer interface + GetBook func(context.Context, *GetBookRequest) (*Book, error) + QueryBooks func(*QueryBooksRequest, BookService_QueryBooksServer) error + type BookService_QueryBooksClient interface + Recv func() (*Book, error) + type BookService_QueryBooksServer interface + Send func(*Book) error + type GetBookRequest struct + Isbn int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetBookRequest) Descriptor() ([]byte, []int) + func (*GetBookRequest) ProtoMessage() + func (m *GetBookRequest) GetIsbn() int64 + func (m *GetBookRequest) Reset() + func (m *GetBookRequest) String() string + func (m *GetBookRequest) XXX_DiscardUnknown() + func (m *GetBookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetBookRequest) XXX_Merge(src proto.Message) + func (m *GetBookRequest) XXX_Size() int + func (m *GetBookRequest) XXX_Unmarshal(b []byte) error + type QueryBooksRequest struct + AuthorPrefix string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*QueryBooksRequest) Descriptor() ([]byte, []int) + func (*QueryBooksRequest) ProtoMessage() + func (m *QueryBooksRequest) GetAuthorPrefix() string + func (m *QueryBooksRequest) Reset() + func (m *QueryBooksRequest) String() string + func (m *QueryBooksRequest) XXX_DiscardUnknown() + func (m *QueryBooksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryBooksRequest) XXX_Merge(src proto.Message) + func (m *QueryBooksRequest) XXX_Size() int + func (m *QueryBooksRequest) XXX_Unmarshal(b []byte) error