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 CreateBookResponses
- func (*CreateBookResponses) Descriptor() ([]byte, []int)
- func (m *CreateBookResponses) GetDefault() *Error
- func (m *CreateBookResponses) GetOk() *Book
- func (*CreateBookResponses) ProtoMessage()
- func (m *CreateBookResponses) Reset()
- func (m *CreateBookResponses) String() string
- func (m *CreateBookResponses) XXX_DiscardUnknown()
- func (m *CreateBookResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBookResponses) XXX_Merge(src proto.Message)
- func (m *CreateBookResponses) XXX_Size() int
- func (m *CreateBookResponses) 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 CreateShelfResponses
- func (*CreateShelfResponses) Descriptor() ([]byte, []int)
- func (m *CreateShelfResponses) GetOk() *Shelf
- func (*CreateShelfResponses) ProtoMessage()
- func (m *CreateShelfResponses) Reset()
- func (m *CreateShelfResponses) String() string
- func (m *CreateShelfResponses) XXX_DiscardUnknown()
- func (m *CreateShelfResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateShelfResponses) XXX_Merge(src proto.Message)
- func (m *CreateShelfResponses) XXX_Size() int
- func (m *CreateShelfResponses) 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 GetBookResponses
- func (*GetBookResponses) Descriptor() ([]byte, []int)
- func (m *GetBookResponses) GetDefault() *Error
- func (m *GetBookResponses) GetOk() *Book
- func (*GetBookResponses) ProtoMessage()
- func (m *GetBookResponses) Reset()
- func (m *GetBookResponses) String() string
- func (m *GetBookResponses) XXX_DiscardUnknown()
- func (m *GetBookResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBookResponses) XXX_Merge(src proto.Message)
- func (m *GetBookResponses) XXX_Size() int
- func (m *GetBookResponses) 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 GetShelfResponses
- func (*GetShelfResponses) Descriptor() ([]byte, []int)
- func (m *GetShelfResponses) GetDefault() *Error
- func (m *GetShelfResponses) GetOk() *Shelf
- func (*GetShelfResponses) ProtoMessage()
- func (m *GetShelfResponses) Reset()
- func (m *GetShelfResponses) String() string
- func (m *GetShelfResponses) XXX_DiscardUnknown()
- func (m *GetShelfResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetShelfResponses) XXX_Merge(src proto.Message)
- func (m *GetShelfResponses) XXX_Size() int
- func (m *GetShelfResponses) 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 ListBooksResponses
- func (*ListBooksResponses) Descriptor() ([]byte, []int)
- func (m *ListBooksResponses) GetDefault() *Error
- func (m *ListBooksResponses) GetOk() *ListBooksResponse
- func (*ListBooksResponses) ProtoMessage()
- func (m *ListBooksResponses) Reset()
- func (m *ListBooksResponses) String() string
- func (m *ListBooksResponses) XXX_DiscardUnknown()
- func (m *ListBooksResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListBooksResponses) XXX_Merge(src proto.Message)
- func (m *ListBooksResponses) XXX_Size() int
- func (m *ListBooksResponses) 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 ListShelvesResponses
- func (*ListShelvesResponses) Descriptor() ([]byte, []int)
- func (m *ListShelvesResponses) GetOk() *ListShelvesResponse
- func (*ListShelvesResponses) ProtoMessage()
- func (m *ListShelvesResponses) Reset()
- func (m *ListShelvesResponses) String() string
- func (m *ListShelvesResponses) XXX_DiscardUnknown()
- func (m *ListShelvesResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListShelvesResponses) XXX_Merge(src proto.Message)
- func (m *ListShelvesResponses) XXX_Size() int
- func (m *ListShelvesResponses) 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) (*CreateBookResponses, error)
- func (*UnimplementedBookstoreServer) CreateShelf(ctx context.Context, req *CreateShelfParameters) (*CreateShelfResponses, 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) (*GetBookResponses, error)
- func (*UnimplementedBookstoreServer) GetShelf(ctx context.Context, req *GetShelfParameters) (*GetShelfResponses, error)
- func (*UnimplementedBookstoreServer) ListBooks(ctx context.Context, req *ListBooksParameters) (*ListBooksResponses, error)
- func (*UnimplementedBookstoreServer) ListShelves(ctx context.Context, req *empty.Empty) (*ListShelvesResponses, 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) (*ListShelvesResponses, error) CreateShelf(ctx context.Context, in *CreateShelfParameters, opts ...grpc.CallOption) (*CreateShelfResponses, error) DeleteShelves(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) GetShelf(ctx context.Context, in *GetShelfParameters, opts ...grpc.CallOption) (*GetShelfResponses, error) DeleteShelf(ctx context.Context, in *DeleteShelfParameters, opts ...grpc.CallOption) (*empty.Empty, error) ListBooks(ctx context.Context, in *ListBooksParameters, opts ...grpc.CallOption) (*ListBooksResponses, error) CreateBook(ctx context.Context, in *CreateBookParameters, opts ...grpc.CallOption) (*CreateBookResponses, error) GetBook(ctx context.Context, in *GetBookParameters, opts ...grpc.CallOption) (*GetBookResponses, 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) (*ListShelvesResponses, error) CreateShelf(context.Context, *CreateShelfParameters) (*CreateShelfResponses, error) DeleteShelves(context.Context, *empty.Empty) (*empty.Empty, error) GetShelf(context.Context, *GetShelfParameters) (*GetShelfResponses, error) DeleteShelf(context.Context, *DeleteShelfParameters) (*empty.Empty, error) ListBooks(context.Context, *ListBooksParameters) (*ListBooksResponses, error) CreateBook(context.Context, *CreateBookParameters) (*CreateBookResponses, error) GetBook(context.Context, *GetBookParameters) (*GetBookResponses, 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 CreateBookResponses ¶
type CreateBookResponses struct { Ok *Book `protobuf:"bytes,1,opt,name=ok,proto3" json:"ok,omitempty"` Default *Error `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateBookResponses) Descriptor ¶
func (*CreateBookResponses) Descriptor() ([]byte, []int)
func (*CreateBookResponses) GetDefault ¶
func (m *CreateBookResponses) GetDefault() *Error
func (*CreateBookResponses) GetOk ¶
func (m *CreateBookResponses) GetOk() *Book
func (*CreateBookResponses) ProtoMessage ¶
func (*CreateBookResponses) ProtoMessage()
func (*CreateBookResponses) Reset ¶
func (m *CreateBookResponses) Reset()
func (*CreateBookResponses) String ¶
func (m *CreateBookResponses) String() string
func (*CreateBookResponses) XXX_DiscardUnknown ¶
func (m *CreateBookResponses) XXX_DiscardUnknown()
func (*CreateBookResponses) XXX_Marshal ¶
func (m *CreateBookResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBookResponses) XXX_Merge ¶
func (m *CreateBookResponses) XXX_Merge(src proto.Message)
func (*CreateBookResponses) XXX_Size ¶
func (m *CreateBookResponses) XXX_Size() int
func (*CreateBookResponses) XXX_Unmarshal ¶
func (m *CreateBookResponses) 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 CreateShelfResponses ¶
type CreateShelfResponses struct { Ok *Shelf `protobuf:"bytes,1,opt,name=ok,proto3" json:"ok,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateShelfResponses) Descriptor ¶
func (*CreateShelfResponses) Descriptor() ([]byte, []int)
func (*CreateShelfResponses) GetOk ¶
func (m *CreateShelfResponses) GetOk() *Shelf
func (*CreateShelfResponses) ProtoMessage ¶
func (*CreateShelfResponses) ProtoMessage()
func (*CreateShelfResponses) Reset ¶
func (m *CreateShelfResponses) Reset()
func (*CreateShelfResponses) String ¶
func (m *CreateShelfResponses) String() string
func (*CreateShelfResponses) XXX_DiscardUnknown ¶
func (m *CreateShelfResponses) XXX_DiscardUnknown()
func (*CreateShelfResponses) XXX_Marshal ¶
func (m *CreateShelfResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateShelfResponses) XXX_Merge ¶
func (m *CreateShelfResponses) XXX_Merge(src proto.Message)
func (*CreateShelfResponses) XXX_Size ¶
func (m *CreateShelfResponses) XXX_Size() int
func (*CreateShelfResponses) XXX_Unmarshal ¶
func (m *CreateShelfResponses) 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 GetBookResponses ¶
type GetBookResponses struct { Ok *Book `protobuf:"bytes,1,opt,name=ok,proto3" json:"ok,omitempty"` Default *Error `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBookResponses) Descriptor ¶
func (*GetBookResponses) Descriptor() ([]byte, []int)
func (*GetBookResponses) GetDefault ¶
func (m *GetBookResponses) GetDefault() *Error
func (*GetBookResponses) GetOk ¶
func (m *GetBookResponses) GetOk() *Book
func (*GetBookResponses) ProtoMessage ¶
func (*GetBookResponses) ProtoMessage()
func (*GetBookResponses) Reset ¶
func (m *GetBookResponses) Reset()
func (*GetBookResponses) String ¶
func (m *GetBookResponses) String() string
func (*GetBookResponses) XXX_DiscardUnknown ¶
func (m *GetBookResponses) XXX_DiscardUnknown()
func (*GetBookResponses) XXX_Marshal ¶
func (m *GetBookResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBookResponses) XXX_Merge ¶
func (m *GetBookResponses) XXX_Merge(src proto.Message)
func (*GetBookResponses) XXX_Size ¶
func (m *GetBookResponses) XXX_Size() int
func (*GetBookResponses) XXX_Unmarshal ¶
func (m *GetBookResponses) 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 GetShelfResponses ¶
type GetShelfResponses struct { Ok *Shelf `protobuf:"bytes,1,opt,name=ok,proto3" json:"ok,omitempty"` Default *Error `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetShelfResponses) Descriptor ¶
func (*GetShelfResponses) Descriptor() ([]byte, []int)
func (*GetShelfResponses) GetDefault ¶
func (m *GetShelfResponses) GetDefault() *Error
func (*GetShelfResponses) GetOk ¶
func (m *GetShelfResponses) GetOk() *Shelf
func (*GetShelfResponses) ProtoMessage ¶
func (*GetShelfResponses) ProtoMessage()
func (*GetShelfResponses) Reset ¶
func (m *GetShelfResponses) Reset()
func (*GetShelfResponses) String ¶
func (m *GetShelfResponses) String() string
func (*GetShelfResponses) XXX_DiscardUnknown ¶
func (m *GetShelfResponses) XXX_DiscardUnknown()
func (*GetShelfResponses) XXX_Marshal ¶
func (m *GetShelfResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetShelfResponses) XXX_Merge ¶
func (m *GetShelfResponses) XXX_Merge(src proto.Message)
func (*GetShelfResponses) XXX_Size ¶
func (m *GetShelfResponses) XXX_Size() int
func (*GetShelfResponses) XXX_Unmarshal ¶
func (m *GetShelfResponses) 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 ListBooksResponses ¶
type ListBooksResponses struct { Ok *ListBooksResponse `protobuf:"bytes,1,opt,name=ok,proto3" json:"ok,omitempty"` Default *Error `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListBooksResponses) Descriptor ¶
func (*ListBooksResponses) Descriptor() ([]byte, []int)
func (*ListBooksResponses) GetDefault ¶
func (m *ListBooksResponses) GetDefault() *Error
func (*ListBooksResponses) GetOk ¶
func (m *ListBooksResponses) GetOk() *ListBooksResponse
func (*ListBooksResponses) ProtoMessage ¶
func (*ListBooksResponses) ProtoMessage()
func (*ListBooksResponses) Reset ¶
func (m *ListBooksResponses) Reset()
func (*ListBooksResponses) String ¶
func (m *ListBooksResponses) String() string
func (*ListBooksResponses) XXX_DiscardUnknown ¶
func (m *ListBooksResponses) XXX_DiscardUnknown()
func (*ListBooksResponses) XXX_Marshal ¶
func (m *ListBooksResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListBooksResponses) XXX_Merge ¶
func (m *ListBooksResponses) XXX_Merge(src proto.Message)
func (*ListBooksResponses) XXX_Size ¶
func (m *ListBooksResponses) XXX_Size() int
func (*ListBooksResponses) XXX_Unmarshal ¶
func (m *ListBooksResponses) 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 ListShelvesResponses ¶
type ListShelvesResponses struct { Ok *ListShelvesResponse `protobuf:"bytes,1,opt,name=ok,proto3" json:"ok,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListShelvesResponses) Descriptor ¶
func (*ListShelvesResponses) Descriptor() ([]byte, []int)
func (*ListShelvesResponses) GetOk ¶
func (m *ListShelvesResponses) GetOk() *ListShelvesResponse
func (*ListShelvesResponses) ProtoMessage ¶
func (*ListShelvesResponses) ProtoMessage()
func (*ListShelvesResponses) Reset ¶
func (m *ListShelvesResponses) Reset()
func (*ListShelvesResponses) String ¶
func (m *ListShelvesResponses) String() string
func (*ListShelvesResponses) XXX_DiscardUnknown ¶
func (m *ListShelvesResponses) XXX_DiscardUnknown()
func (*ListShelvesResponses) XXX_Marshal ¶
func (m *ListShelvesResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListShelvesResponses) XXX_Merge ¶
func (m *ListShelvesResponses) XXX_Merge(src proto.Message)
func (*ListShelvesResponses) XXX_Size ¶
func (m *ListShelvesResponses) XXX_Size() int
func (*ListShelvesResponses) XXX_Unmarshal ¶
func (m *ListShelvesResponses) 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) (*CreateBookResponses, error)
func (*UnimplementedBookstoreServer) CreateShelf ¶
func (*UnimplementedBookstoreServer) CreateShelf(ctx context.Context, req *CreateShelfParameters) (*CreateShelfResponses, 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) (*GetBookResponses, error)
func (*UnimplementedBookstoreServer) GetShelf ¶
func (*UnimplementedBookstoreServer) GetShelf(ctx context.Context, req *GetShelfParameters) (*GetShelfResponses, error)
func (*UnimplementedBookstoreServer) ListBooks ¶
func (*UnimplementedBookstoreServer) ListBooks(ctx context.Context, req *ListBooksParameters) (*ListBooksResponses, error)
func (*UnimplementedBookstoreServer) ListShelves ¶
func (*UnimplementedBookstoreServer) ListShelves(ctx context.Context, req *empty.Empty) (*ListShelvesResponses, error)
Click to show internal directories.
Click to hide internal directories.