Versions in this module Expand all Collapse all v0 v0.1.1 Feb 5, 2021 Changes in this version + func RegisterBookstoreHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterBookstoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BookstoreClient) error + func RegisterBookstoreHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterBookstoreServer(s *grpc.Server, srv BookstoreServer) + func RunProxy() + func RunServer() + type Book struct + Author string + Name string + 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) GetName() string + 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 BookstoreClient interface + CreateBook func(ctx context.Context, in *CreateBookParameters, opts ...grpc.CallOption) (*Book, error) + CreateShelf func(ctx context.Context, in *CreateShelfParameters, opts ...grpc.CallOption) (*Shelf, error) + DeleteBook func(ctx context.Context, in *DeleteBookParameters, opts ...grpc.CallOption) (*empty.Empty, error) + DeleteShelf func(ctx context.Context, in *DeleteShelfParameters, opts ...grpc.CallOption) (*empty.Empty, error) + DeleteShelves func(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) + GetBook func(ctx context.Context, in *GetBookParameters, opts ...grpc.CallOption) (*Book, error) + GetShelf func(ctx context.Context, in *GetShelfParameters, opts ...grpc.CallOption) (*Shelf, error) + ListBooks func(ctx context.Context, in *ListBooksParameters, opts ...grpc.CallOption) (*ListBooksResponse, error) + ListShelves func(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListShelvesResponse, error) + func NewBookstoreClient(cc *grpc.ClientConn) BookstoreClient + type BookstoreServer interface + CreateBook func(context.Context, *CreateBookParameters) (*Book, error) + CreateShelf func(context.Context, *CreateShelfParameters) (*Shelf, error) + DeleteBook func(context.Context, *DeleteBookParameters) (*empty.Empty, error) + DeleteShelf func(context.Context, *DeleteShelfParameters) (*empty.Empty, error) + DeleteShelves func(context.Context, *empty.Empty) (*empty.Empty, error) + GetBook func(context.Context, *GetBookParameters) (*Book, error) + GetShelf func(context.Context, *GetShelfParameters) (*Shelf, error) + ListBooks func(context.Context, *ListBooksParameters) (*ListBooksResponse, error) + ListShelves func(context.Context, *empty.Empty) (*ListShelvesResponse, error) + type CreateBookParameters struct + Book *Book + Shelf int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CreateBookParameters) Descriptor() ([]byte, []int) + func (*CreateBookParameters) ProtoMessage() + func (m *CreateBookParameters) GetBook() *Book + func (m *CreateBookParameters) GetShelf() int64 + func (m *CreateBookParameters) Reset() + func (m *CreateBookParameters) String() string + func (m *CreateBookParameters) XXX_DiscardUnknown() + func (m *CreateBookParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CreateBookParameters) XXX_Merge(src proto.Message) + func (m *CreateBookParameters) XXX_Size() int + func (m *CreateBookParameters) XXX_Unmarshal(b []byte) error + type CreateShelfParameters struct + Shelf *Shelf + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CreateShelfParameters) Descriptor() ([]byte, []int) + func (*CreateShelfParameters) ProtoMessage() + func (m *CreateShelfParameters) GetShelf() *Shelf + func (m *CreateShelfParameters) Reset() + func (m *CreateShelfParameters) String() string + func (m *CreateShelfParameters) XXX_DiscardUnknown() + func (m *CreateShelfParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CreateShelfParameters) XXX_Merge(src proto.Message) + func (m *CreateShelfParameters) XXX_Size() int + func (m *CreateShelfParameters) XXX_Unmarshal(b []byte) error + type DeleteBookParameters struct + Book int64 + Shelf int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeleteBookParameters) Descriptor() ([]byte, []int) + func (*DeleteBookParameters) ProtoMessage() + func (m *DeleteBookParameters) GetBook() int64 + func (m *DeleteBookParameters) GetShelf() int64 + func (m *DeleteBookParameters) Reset() + func (m *DeleteBookParameters) String() string + func (m *DeleteBookParameters) XXX_DiscardUnknown() + func (m *DeleteBookParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DeleteBookParameters) XXX_Merge(src proto.Message) + func (m *DeleteBookParameters) XXX_Size() int + func (m *DeleteBookParameters) XXX_Unmarshal(b []byte) error + type DeleteShelfParameters struct + Shelf int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DeleteShelfParameters) Descriptor() ([]byte, []int) + func (*DeleteShelfParameters) ProtoMessage() + func (m *DeleteShelfParameters) GetShelf() int64 + func (m *DeleteShelfParameters) Reset() + func (m *DeleteShelfParameters) String() string + func (m *DeleteShelfParameters) XXX_DiscardUnknown() + func (m *DeleteShelfParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DeleteShelfParameters) XXX_Merge(src proto.Message) + func (m *DeleteShelfParameters) XXX_Size() int + func (m *DeleteShelfParameters) XXX_Unmarshal(b []byte) error + type Error struct + Code int32 + Message string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Error) Descriptor() ([]byte, []int) + func (*Error) ProtoMessage() + func (m *Error) GetCode() int32 + func (m *Error) GetMessage() string + func (m *Error) Reset() + func (m *Error) String() string + func (m *Error) XXX_DiscardUnknown() + func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Error) XXX_Merge(src proto.Message) + func (m *Error) XXX_Size() int + func (m *Error) XXX_Unmarshal(b []byte) error + type GetBookParameters struct + Book int64 + Shelf int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetBookParameters) Descriptor() ([]byte, []int) + func (*GetBookParameters) ProtoMessage() + func (m *GetBookParameters) GetBook() int64 + func (m *GetBookParameters) GetShelf() int64 + func (m *GetBookParameters) Reset() + func (m *GetBookParameters) String() string + func (m *GetBookParameters) XXX_DiscardUnknown() + func (m *GetBookParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetBookParameters) XXX_Merge(src proto.Message) + func (m *GetBookParameters) XXX_Size() int + func (m *GetBookParameters) XXX_Unmarshal(b []byte) error + type GetShelfParameters struct + Shelf int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*GetShelfParameters) Descriptor() ([]byte, []int) + func (*GetShelfParameters) ProtoMessage() + func (m *GetShelfParameters) GetShelf() int64 + func (m *GetShelfParameters) Reset() + func (m *GetShelfParameters) String() string + func (m *GetShelfParameters) XXX_DiscardUnknown() + func (m *GetShelfParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetShelfParameters) XXX_Merge(src proto.Message) + func (m *GetShelfParameters) XXX_Size() int + func (m *GetShelfParameters) XXX_Unmarshal(b []byte) error + type ListBooksParameters struct + Shelf int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListBooksParameters) Descriptor() ([]byte, []int) + func (*ListBooksParameters) ProtoMessage() + func (m *ListBooksParameters) GetShelf() int64 + func (m *ListBooksParameters) Reset() + func (m *ListBooksParameters) String() string + func (m *ListBooksParameters) XXX_DiscardUnknown() + func (m *ListBooksParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ListBooksParameters) XXX_Merge(src proto.Message) + func (m *ListBooksParameters) XXX_Size() int + func (m *ListBooksParameters) XXX_Unmarshal(b []byte) error + type ListBooksResponse struct + Books []*Book + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListBooksResponse) Descriptor() ([]byte, []int) + func (*ListBooksResponse) ProtoMessage() + func (m *ListBooksResponse) GetBooks() []*Book + func (m *ListBooksResponse) Reset() + func (m *ListBooksResponse) String() string + func (m *ListBooksResponse) XXX_DiscardUnknown() + func (m *ListBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ListBooksResponse) XXX_Merge(src proto.Message) + func (m *ListBooksResponse) XXX_Size() int + func (m *ListBooksResponse) XXX_Unmarshal(b []byte) error + type ListShelvesResponse struct + Shelves []*Shelf + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListShelvesResponse) Descriptor() ([]byte, []int) + func (*ListShelvesResponse) ProtoMessage() + func (m *ListShelvesResponse) GetShelves() []*Shelf + func (m *ListShelvesResponse) Reset() + func (m *ListShelvesResponse) String() string + func (m *ListShelvesResponse) XXX_DiscardUnknown() + func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ListShelvesResponse) XXX_Merge(src proto.Message) + func (m *ListShelvesResponse) XXX_Size() int + func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error + type Shelf struct + Name string + Theme string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Shelf) Descriptor() ([]byte, []int) + func (*Shelf) ProtoMessage() + func (m *Shelf) GetName() string + func (m *Shelf) GetTheme() string + func (m *Shelf) Reset() + func (m *Shelf) String() string + func (m *Shelf) XXX_DiscardUnknown() + func (m *Shelf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Shelf) XXX_Merge(src proto.Message) + func (m *Shelf) XXX_Size() int + func (m *Shelf) XXX_Unmarshal(b []byte) error + type UnimplementedBookstoreServer struct + func (*UnimplementedBookstoreServer) CreateBook(ctx context.Context, req *CreateBookParameters) (*Book, error) + func (*UnimplementedBookstoreServer) CreateShelf(ctx context.Context, req *CreateShelfParameters) (*Shelf, error) + func (*UnimplementedBookstoreServer) DeleteBook(ctx context.Context, req *DeleteBookParameters) (*empty.Empty, error) + func (*UnimplementedBookstoreServer) DeleteShelf(ctx context.Context, req *DeleteShelfParameters) (*empty.Empty, error) + func (*UnimplementedBookstoreServer) DeleteShelves(ctx context.Context, req *empty.Empty) (*empty.Empty, error) + func (*UnimplementedBookstoreServer) GetBook(ctx context.Context, req *GetBookParameters) (*Book, error) + func (*UnimplementedBookstoreServer) GetShelf(ctx context.Context, req *GetShelfParameters) (*Shelf, error) + func (*UnimplementedBookstoreServer) ListBooks(ctx context.Context, req *ListBooksParameters) (*ListBooksResponse, error) + func (*UnimplementedBookstoreServer) ListShelves(ctx context.Context, req *empty.Empty) (*ListShelvesResponse, error)