Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecordStore ¶
func NewRecordStore(prefix []byte) *recstore.Store[int64, SampleRecord, *SampleRecord]
Types ¶
type SampleRecord ¶
func NewSampleEntity ¶
func NewSampleEntity(name string) *SampleRecord
func (SampleRecord) GetId ¶
func (t SampleRecord) GetId() int64
func (SampleRecord) MarshalBinary ¶
func (t SampleRecord) MarshalBinary() ([]byte, error)
func (*SampleRecord) SetId ¶
func (t *SampleRecord) SetId(id int64)
func (*SampleRecord) UnmarshalBinary ¶
func (t *SampleRecord) UnmarshalBinary(data []byte) error
type SampleStruct ¶
type SampleStruct struct {
A int `json:"a,omitempty"`
B string `json:"b,omitempty"`
C bool `json:"c,omitempty"`
D []int `json:"d,omitempty"`
E map[string]int `json:"e,omitempty"`
F *SampleStruct `json:"f,omitempty"`
G float32 `json:"g,omitempty"`
H float64 `json:"h,omitempty"`
}
func (SampleStruct) MarshalBinary ¶
func (t SampleStruct) MarshalBinary() ([]byte, error)
func (*SampleStruct) UnmarshalBinary ¶
func (t *SampleStruct) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.