Documentation ¶
Index ¶
- func RegisterBookstoreServer(s *grpc.Server, srv BookstoreServer)
- func RunServer()
- type Book
- func (*Book) Descriptor() ([]byte, []int)
- func (m *Book) GetAuthor() string
- func (m *Book) GetName() string
- func (m *Book) GetTitle() string
- func (*Book) ProtoMessage()
- 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
- type BookstoreServer
- type CreateBookParameters
- func (*CreateBookParameters) Descriptor() ([]byte, []int)
- func (m *CreateBookParameters) GetBook() *Book
- func (m *CreateBookParameters) GetShelf() int64
- func (*CreateBookParameters) ProtoMessage()
- 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
- func (*CreateShelfParameters) Descriptor() ([]byte, []int)
- func (m *CreateShelfParameters) GetShelf() *Shelf
- func (*CreateShelfParameters) ProtoMessage()
- 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
- func (*DeleteBookParameters) Descriptor() ([]byte, []int)
- func (m *DeleteBookParameters) GetBook() int64
- func (m *DeleteBookParameters) GetShelf() int64
- func (*DeleteBookParameters) ProtoMessage()
- 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
- func (*DeleteShelfParameters) Descriptor() ([]byte, []int)
- func (m *DeleteShelfParameters) GetShelf() int64
- func (*DeleteShelfParameters) ProtoMessage()
- 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
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() int32
- func (m *Error) GetMessage() string
- func (*Error) ProtoMessage()
- 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
- func (*GetBookParameters) Descriptor() ([]byte, []int)
- func (m *GetBookParameters) GetBook() int64
- func (m *GetBookParameters) GetShelf() int64
- func (*GetBookParameters) ProtoMessage()
- 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
- func (*GetShelfParameters) Descriptor() ([]byte, []int)
- func (m *GetShelfParameters) GetShelf() int64
- func (*GetShelfParameters) ProtoMessage()
- 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
- func (*ListBooksParameters) Descriptor() ([]byte, []int)
- func (m *ListBooksParameters) GetShelf() int64
- func (*ListBooksParameters) ProtoMessage()
- 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
- func (*ListBooksResponse) Descriptor() ([]byte, []int)
- func (m *ListBooksResponse) GetBooks() []*Book
- func (*ListBooksResponse) ProtoMessage()
- 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
- func (*ListShelvesResponse) Descriptor() ([]byte, []int)
- func (m *ListShelvesResponse) GetShelves() []*Shelf
- func (*ListShelvesResponse) ProtoMessage()
- 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
- func (*Shelf) Descriptor() ([]byte, []int)
- func (m *Shelf) GetName() string
- func (m *Shelf) GetTheme() string
- func (*Shelf) ProtoMessage()
- 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
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBookstoreServer ¶
func RegisterBookstoreServer(s *grpc.Server, srv BookstoreServer)
Types ¶
type Book ¶
type Book struct { Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Book) Descriptor ¶
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) XXX_DiscardUnknown ¶
func (m *Book) XXX_DiscardUnknown()
func (*Book) XXX_Unmarshal ¶
type BookstoreClient ¶
type BookstoreClient interface { ListShelves(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListShelvesResponse, error) CreateShelf(ctx context.Context, in *CreateShelfParameters, opts ...grpc.CallOption) (*Shelf, error) DeleteShelves(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) GetShelf(ctx context.Context, in *GetShelfParameters, opts ...grpc.CallOption) (*Shelf, error) DeleteShelf(ctx context.Context, in *DeleteShelfParameters, opts ...grpc.CallOption) (*empty.Empty, error) ListBooks(ctx context.Context, in *ListBooksParameters, opts ...grpc.CallOption) (*ListBooksResponse, error) CreateBook(ctx context.Context, in *CreateBookParameters, opts ...grpc.CallOption) (*Book, error) GetBook(ctx context.Context, in *GetBookParameters, opts ...grpc.CallOption) (*Book, error) DeleteBook(ctx context.Context, in *DeleteBookParameters, opts ...grpc.CallOption) (*empty.Empty, error) }
BookstoreClient is the client API for Bookstore service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBookstoreClient ¶
func NewBookstoreClient(cc *grpc.ClientConn) BookstoreClient
type BookstoreServer ¶
type BookstoreServer interface { ListShelves(context.Context, *empty.Empty) (*ListShelvesResponse, error) CreateShelf(context.Context, *CreateShelfParameters) (*Shelf, error) DeleteShelves(context.Context, *empty.Empty) (*empty.Empty, error) GetShelf(context.Context, *GetShelfParameters) (*Shelf, error) DeleteShelf(context.Context, *DeleteShelfParameters) (*empty.Empty, error) ListBooks(context.Context, *ListBooksParameters) (*ListBooksResponse, error) CreateBook(context.Context, *CreateBookParameters) (*Book, error) GetBook(context.Context, *GetBookParameters) (*Book, error) DeleteBook(context.Context, *DeleteBookParameters) (*empty.Empty, error) }
BookstoreServer is the server API for Bookstore service.
type CreateBookParameters ¶
type CreateBookParameters struct { Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` Book *Book `protobuf:"bytes,2,opt,name=book,proto3" json:"book,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateBookParameters) Descriptor ¶
func (*CreateBookParameters) Descriptor() ([]byte, []int)
func (*CreateBookParameters) GetBook ¶
func (m *CreateBookParameters) GetBook() *Book
func (*CreateBookParameters) GetShelf ¶
func (m *CreateBookParameters) GetShelf() int64
func (*CreateBookParameters) ProtoMessage ¶
func (*CreateBookParameters) ProtoMessage()
func (*CreateBookParameters) Reset ¶
func (m *CreateBookParameters) Reset()
func (*CreateBookParameters) String ¶
func (m *CreateBookParameters) String() string
func (*CreateBookParameters) XXX_DiscardUnknown ¶
func (m *CreateBookParameters) XXX_DiscardUnknown()
func (*CreateBookParameters) XXX_Marshal ¶
func (m *CreateBookParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBookParameters) XXX_Merge ¶
func (m *CreateBookParameters) XXX_Merge(src proto.Message)
func (*CreateBookParameters) XXX_Size ¶
func (m *CreateBookParameters) XXX_Size() int
func (*CreateBookParameters) XXX_Unmarshal ¶
func (m *CreateBookParameters) XXX_Unmarshal(b []byte) error
type CreateShelfParameters ¶
type CreateShelfParameters struct { Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateShelfParameters) Descriptor ¶
func (*CreateShelfParameters) Descriptor() ([]byte, []int)
func (*CreateShelfParameters) GetShelf ¶
func (m *CreateShelfParameters) GetShelf() *Shelf
func (*CreateShelfParameters) ProtoMessage ¶
func (*CreateShelfParameters) ProtoMessage()
func (*CreateShelfParameters) Reset ¶
func (m *CreateShelfParameters) Reset()
func (*CreateShelfParameters) String ¶
func (m *CreateShelfParameters) String() string
func (*CreateShelfParameters) XXX_DiscardUnknown ¶
func (m *CreateShelfParameters) XXX_DiscardUnknown()
func (*CreateShelfParameters) XXX_Marshal ¶
func (m *CreateShelfParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateShelfParameters) XXX_Merge ¶
func (m *CreateShelfParameters) XXX_Merge(src proto.Message)
func (*CreateShelfParameters) XXX_Size ¶
func (m *CreateShelfParameters) XXX_Size() int
func (*CreateShelfParameters) XXX_Unmarshal ¶
func (m *CreateShelfParameters) XXX_Unmarshal(b []byte) error
type DeleteBookParameters ¶
type DeleteBookParameters struct { Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` Book int64 `protobuf:"varint,2,opt,name=book,proto3" json:"book,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteBookParameters) Descriptor ¶
func (*DeleteBookParameters) Descriptor() ([]byte, []int)
func (*DeleteBookParameters) GetBook ¶
func (m *DeleteBookParameters) GetBook() int64
func (*DeleteBookParameters) GetShelf ¶
func (m *DeleteBookParameters) GetShelf() int64
func (*DeleteBookParameters) ProtoMessage ¶
func (*DeleteBookParameters) ProtoMessage()
func (*DeleteBookParameters) Reset ¶
func (m *DeleteBookParameters) Reset()
func (*DeleteBookParameters) String ¶
func (m *DeleteBookParameters) String() string
func (*DeleteBookParameters) XXX_DiscardUnknown ¶
func (m *DeleteBookParameters) XXX_DiscardUnknown()
func (*DeleteBookParameters) XXX_Marshal ¶
func (m *DeleteBookParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteBookParameters) XXX_Merge ¶
func (m *DeleteBookParameters) XXX_Merge(src proto.Message)
func (*DeleteBookParameters) XXX_Size ¶
func (m *DeleteBookParameters) XXX_Size() int
func (*DeleteBookParameters) XXX_Unmarshal ¶
func (m *DeleteBookParameters) XXX_Unmarshal(b []byte) error
type DeleteShelfParameters ¶
type DeleteShelfParameters struct { Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteShelfParameters) Descriptor ¶
func (*DeleteShelfParameters) Descriptor() ([]byte, []int)
func (*DeleteShelfParameters) GetShelf ¶
func (m *DeleteShelfParameters) GetShelf() int64
func (*DeleteShelfParameters) ProtoMessage ¶
func (*DeleteShelfParameters) ProtoMessage()
func (*DeleteShelfParameters) Reset ¶
func (m *DeleteShelfParameters) Reset()
func (*DeleteShelfParameters) String ¶
func (m *DeleteShelfParameters) String() string
func (*DeleteShelfParameters) XXX_DiscardUnknown ¶
func (m *DeleteShelfParameters) XXX_DiscardUnknown()
func (*DeleteShelfParameters) XXX_Marshal ¶
func (m *DeleteShelfParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteShelfParameters) XXX_Merge ¶
func (m *DeleteShelfParameters) XXX_Merge(src proto.Message)
func (*DeleteShelfParameters) XXX_Size ¶
func (m *DeleteShelfParameters) XXX_Size() int
func (*DeleteShelfParameters) XXX_Unmarshal ¶
func (m *DeleteShelfParameters) XXX_Unmarshal(b []byte) error
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type GetBookParameters ¶
type GetBookParameters struct { Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` Book int64 `protobuf:"varint,2,opt,name=book,proto3" json:"book,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBookParameters) Descriptor ¶
func (*GetBookParameters) Descriptor() ([]byte, []int)
func (*GetBookParameters) GetBook ¶
func (m *GetBookParameters) GetBook() int64
func (*GetBookParameters) GetShelf ¶
func (m *GetBookParameters) GetShelf() int64
func (*GetBookParameters) ProtoMessage ¶
func (*GetBookParameters) ProtoMessage()
func (*GetBookParameters) Reset ¶
func (m *GetBookParameters) Reset()
func (*GetBookParameters) String ¶
func (m *GetBookParameters) String() string
func (*GetBookParameters) XXX_DiscardUnknown ¶
func (m *GetBookParameters) XXX_DiscardUnknown()
func (*GetBookParameters) XXX_Marshal ¶
func (m *GetBookParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBookParameters) XXX_Merge ¶
func (m *GetBookParameters) XXX_Merge(src proto.Message)
func (*GetBookParameters) XXX_Size ¶
func (m *GetBookParameters) XXX_Size() int
func (*GetBookParameters) XXX_Unmarshal ¶
func (m *GetBookParameters) XXX_Unmarshal(b []byte) error
type GetShelfParameters ¶
type GetShelfParameters struct { Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetShelfParameters) Descriptor ¶
func (*GetShelfParameters) Descriptor() ([]byte, []int)
func (*GetShelfParameters) GetShelf ¶
func (m *GetShelfParameters) GetShelf() int64
func (*GetShelfParameters) ProtoMessage ¶
func (*GetShelfParameters) ProtoMessage()
func (*GetShelfParameters) Reset ¶
func (m *GetShelfParameters) Reset()
func (*GetShelfParameters) String ¶
func (m *GetShelfParameters) String() string
func (*GetShelfParameters) XXX_DiscardUnknown ¶
func (m *GetShelfParameters) XXX_DiscardUnknown()
func (*GetShelfParameters) XXX_Marshal ¶
func (m *GetShelfParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetShelfParameters) XXX_Merge ¶
func (m *GetShelfParameters) XXX_Merge(src proto.Message)
func (*GetShelfParameters) XXX_Size ¶
func (m *GetShelfParameters) XXX_Size() int
func (*GetShelfParameters) XXX_Unmarshal ¶
func (m *GetShelfParameters) XXX_Unmarshal(b []byte) error
type ListBooksParameters ¶
type ListBooksParameters struct { Shelf int64 `protobuf:"varint,1,opt,name=shelf,proto3" json:"shelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListBooksParameters) Descriptor ¶
func (*ListBooksParameters) Descriptor() ([]byte, []int)
func (*ListBooksParameters) GetShelf ¶
func (m *ListBooksParameters) GetShelf() int64
func (*ListBooksParameters) ProtoMessage ¶
func (*ListBooksParameters) ProtoMessage()
func (*ListBooksParameters) Reset ¶
func (m *ListBooksParameters) Reset()
func (*ListBooksParameters) String ¶
func (m *ListBooksParameters) String() string
func (*ListBooksParameters) XXX_DiscardUnknown ¶
func (m *ListBooksParameters) XXX_DiscardUnknown()
func (*ListBooksParameters) XXX_Marshal ¶
func (m *ListBooksParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListBooksParameters) XXX_Merge ¶
func (m *ListBooksParameters) XXX_Merge(src proto.Message)
func (*ListBooksParameters) XXX_Size ¶
func (m *ListBooksParameters) XXX_Size() int
func (*ListBooksParameters) XXX_Unmarshal ¶
func (m *ListBooksParameters) XXX_Unmarshal(b []byte) error
type ListBooksResponse ¶
type ListBooksResponse struct { Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListBooksResponse) Descriptor ¶
func (*ListBooksResponse) Descriptor() ([]byte, []int)
func (*ListBooksResponse) GetBooks ¶
func (m *ListBooksResponse) GetBooks() []*Book
func (*ListBooksResponse) ProtoMessage ¶
func (*ListBooksResponse) ProtoMessage()
func (*ListBooksResponse) Reset ¶
func (m *ListBooksResponse) Reset()
func (*ListBooksResponse) String ¶
func (m *ListBooksResponse) String() string
func (*ListBooksResponse) XXX_DiscardUnknown ¶
func (m *ListBooksResponse) XXX_DiscardUnknown()
func (*ListBooksResponse) XXX_Marshal ¶
func (m *ListBooksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListBooksResponse) XXX_Merge ¶
func (m *ListBooksResponse) XXX_Merge(src proto.Message)
func (*ListBooksResponse) XXX_Size ¶
func (m *ListBooksResponse) XXX_Size() int
func (*ListBooksResponse) XXX_Unmarshal ¶
func (m *ListBooksResponse) XXX_Unmarshal(b []byte) error
type ListShelvesResponse ¶
type ListShelvesResponse struct { Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListShelvesResponse) Descriptor ¶
func (*ListShelvesResponse) Descriptor() ([]byte, []int)
func (*ListShelvesResponse) GetShelves ¶
func (m *ListShelvesResponse) GetShelves() []*Shelf
func (*ListShelvesResponse) ProtoMessage ¶
func (*ListShelvesResponse) ProtoMessage()
func (*ListShelvesResponse) Reset ¶
func (m *ListShelvesResponse) Reset()
func (*ListShelvesResponse) String ¶
func (m *ListShelvesResponse) String() string
func (*ListShelvesResponse) XXX_DiscardUnknown ¶
func (m *ListShelvesResponse) XXX_DiscardUnknown()
func (*ListShelvesResponse) XXX_Marshal ¶
func (m *ListShelvesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListShelvesResponse) XXX_Merge ¶
func (m *ListShelvesResponse) XXX_Merge(src proto.Message)
func (*ListShelvesResponse) XXX_Size ¶
func (m *ListShelvesResponse) XXX_Size() int
func (*ListShelvesResponse) XXX_Unmarshal ¶
func (m *ListShelvesResponse) XXX_Unmarshal(b []byte) error
type Shelf ¶
type Shelf struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Shelf) Descriptor ¶
func (*Shelf) ProtoMessage ¶
func (*Shelf) ProtoMessage()
func (*Shelf) XXX_DiscardUnknown ¶
func (m *Shelf) XXX_DiscardUnknown()
func (*Shelf) XXX_Marshal ¶
func (*Shelf) XXX_Unmarshal ¶
type UnimplementedBookstoreServer ¶
type UnimplementedBookstoreServer struct { }
UnimplementedBookstoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedBookstoreServer) CreateBook ¶
func (*UnimplementedBookstoreServer) CreateBook(ctx context.Context, req *CreateBookParameters) (*Book, error)
func (*UnimplementedBookstoreServer) CreateShelf ¶
func (*UnimplementedBookstoreServer) CreateShelf(ctx context.Context, req *CreateShelfParameters) (*Shelf, error)
func (*UnimplementedBookstoreServer) DeleteBook ¶
func (*UnimplementedBookstoreServer) DeleteBook(ctx context.Context, req *DeleteBookParameters) (*empty.Empty, error)
func (*UnimplementedBookstoreServer) DeleteShelf ¶
func (*UnimplementedBookstoreServer) DeleteShelf(ctx context.Context, req *DeleteShelfParameters) (*empty.Empty, error)
func (*UnimplementedBookstoreServer) DeleteShelves ¶
func (*UnimplementedBookstoreServer) GetBook ¶
func (*UnimplementedBookstoreServer) GetBook(ctx context.Context, req *GetBookParameters) (*Book, error)
func (*UnimplementedBookstoreServer) GetShelf ¶
func (*UnimplementedBookstoreServer) GetShelf(ctx context.Context, req *GetShelfParameters) (*Shelf, error)
func (*UnimplementedBookstoreServer) ListBooks ¶
func (*UnimplementedBookstoreServer) ListBooks(ctx context.Context, req *ListBooksParameters) (*ListBooksResponse, error)
func (*UnimplementedBookstoreServer) ListShelves ¶
func (*UnimplementedBookstoreServer) ListShelves(ctx context.Context, req *empty.Empty) (*ListShelvesResponse, error)
Click to show internal directories.
Click to hide internal directories.