Documentation ¶
Index ¶
- Variables
- type Action
- type Book
- func (*Book) Descriptor() ([]byte, []int)
- func (m *Book) GetAuthors() []string
- func (m *Book) GetIsbn() string
- func (m *Book) GetPublisher() string
- func (m *Book) GetTitle() string
- func (m *Book) GetVolume() 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 (dst *Book) XXX_Merge(src proto.Message)
- func (m *Book) XXX_Size() int
- func (m *Book) XXX_Unmarshal(b []byte) error
- type LibService
- func (*LibService) Descriptor() ([]byte, []int)
- func (m *LibService) GetAction() Action
- func (m *LibService) GetBooks() []*Book
- func (m *LibService) GetLendDate() *timestamp.Timestamp
- func (m *LibService) GetReturnDate() *timestamp.Timestamp
- func (*LibService) ProtoMessage()
- func (m *LibService) Reset()
- func (m *LibService) String() string
- func (m *LibService) XXX_DiscardUnknown()
- func (m *LibService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LibService) XXX_Merge(src proto.Message)
- func (m *LibService) XXX_Size() int
- func (m *LibService) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Action_name = map[int32]string{
0: "NONE",
1: "LEND_REQUEST",
2: "RETURN_REQUEST",
3: "MODULE_PREPARE",
4: "MODULE_SHIPPING",
}
View Source
var Action_value = map[string]int32{
"NONE": 0,
"LEND_REQUEST": 1,
"RETURN_REQUEST": 2,
"MODULE_PREPARE": 3,
"MODULE_SHIPPING": 4,
}
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Volume string `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"` Authors []string `protobuf:"bytes,3,rep,name=authors,proto3" json:"authors,omitempty"` Publisher string `protobuf:"bytes,4,opt,name=publisher,proto3" json:"publisher,omitempty"` Isbn string `protobuf:"bytes,5,opt,name=isbn,proto3" json:"isbn,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Book) Descriptor ¶
func (*Book) GetAuthors ¶
func (*Book) GetPublisher ¶
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) XXX_DiscardUnknown ¶
func (m *Book) XXX_DiscardUnknown()
func (*Book) XXX_Unmarshal ¶
type LibService ¶
type LibService struct { Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=api.library.Action" json:"action,omitempty"` Books []*Book `protobuf:"bytes,2,rep,name=books,proto3" json:"books,omitempty"` LendDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=lend_date,json=lendDate,proto3" json:"lend_date,omitempty"` ReturnDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=return_date,json=returnDate,proto3" json:"return_date,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LibService) Descriptor ¶
func (*LibService) Descriptor() ([]byte, []int)
func (*LibService) GetAction ¶
func (m *LibService) GetAction() Action
func (*LibService) GetBooks ¶
func (m *LibService) GetBooks() []*Book
func (*LibService) GetLendDate ¶
func (m *LibService) GetLendDate() *timestamp.Timestamp
func (*LibService) GetReturnDate ¶
func (m *LibService) GetReturnDate() *timestamp.Timestamp
func (*LibService) ProtoMessage ¶
func (*LibService) ProtoMessage()
func (*LibService) Reset ¶
func (m *LibService) Reset()
func (*LibService) String ¶
func (m *LibService) String() string
func (*LibService) XXX_DiscardUnknown ¶
func (m *LibService) XXX_DiscardUnknown()
func (*LibService) XXX_Marshal ¶
func (m *LibService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LibService) XXX_Merge ¶
func (dst *LibService) XXX_Merge(src proto.Message)
func (*LibService) XXX_Size ¶
func (m *LibService) XXX_Size() int
func (*LibService) XXX_Unmarshal ¶
func (m *LibService) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.