Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultBufferSizeKB = 16 DefaultBackup = 20 DefaultChunkBits = 29 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Dir string `json:"dir"` Backup int `json:"backup"` ChunkBits uint `json:"chunkbits"` }
---------------------------------- recode log encode
type Decoder ¶
type Decoder interface {
Decode(v interface{}) error
}
-------------------------------
func NewDecoder ¶
type Encoder ¶
func NewEncoder ¶
type NopEncoder ¶
type NopEncoder struct{}
---------------------- nop encoder
func (*NopEncoder) Close ¶
func (e *NopEncoder) Close() error
func (*NopEncoder) Encode ¶
func (e *NopEncoder) Encode(v interface{}) error
type RecordDecoder ¶
type RecordDecoder struct { *RecordLog // contains filtered or unexported fields }
func (*RecordDecoder) Decode ¶
func (e *RecordDecoder) Decode(v interface{}) error
Click to show internal directories.
Click to hide internal directories.