Documentation
¶
Index ¶
- Variables
- func AppendEffectKey(key string)
- func DumpViews() (s string)
- func GetSeq() int64
- func GetUuid() string
- func ImproveSeq(seq int64)
- func IncSeq() int64
- func InitView(v View)
- func LockSeq()
- func RegisterStructures(name string, f func() Structures) interface{}
- func RegisterView(name string, f func() View) interface{}
- func SetSeq(seq int64)
- func SetUuid(u string)
- func UnlockSeq()
- type BufferedConn
- type Marshalable
- type SBase
- type SBaseI
- type Seq
- type SeqI
- type StreamBuffer
- func (this *StreamBuffer) Buffer() []byte
- func (this *StreamBuffer) Cap() int
- func (this *StreamBuffer) Commit(n int)
- func (this *StreamBuffer) Consume(n int)
- func (this *StreamBuffer) ExtendCap(capacity int)
- func (this *StreamBuffer) Len() int
- func (this *StreamBuffer) PreReadBuffer() []byte
- func (this *StreamBuffer) Reorganize()
- func (this *StreamBuffer) Tail() int
- type Structures
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var BgSaving func() bool
View Source
var DefualtView = "trie"
View Source
var EndIterator interface{} = &globalView
View Source
var NeedOnDel func() bool
View Callbacks
View Source
var OnBeforeChanged func(s SBaseI)
Structures Callbacks
View Source
var OnFlushAll func(v View)
View Source
var StructFactory map[string]func() Structures = make(map[string]func() Structures)
工厂接口
工厂接口
Functions ¶
func LockSeq ¶
func LockSeq()
func RegisterStructures ¶
func RegisterStructures(name string, f func() Structures) interface{}
func UnlockSeq ¶
func UnlockSeq()
Types ¶
type Marshalable ¶
支持主从同步功能的数据结构需要实现的接口
type SBaseI ¶
type SBaseI interface { SeqI SetKeyRef_AtBase(v interface{}) GetKeyRef_AtBase() interface{} }
Structure基类
type StreamBuffer ¶
type StreamBuffer struct {
// contains filtered or unexported fields
}
func NewStreamBuffer ¶
func NewStreamBuffer(capacity int) *StreamBuffer
func (*StreamBuffer) Buffer ¶
func (this *StreamBuffer) Buffer() []byte
func (*StreamBuffer) Cap ¶
func (this *StreamBuffer) Cap() int
func (*StreamBuffer) Commit ¶
func (this *StreamBuffer) Commit(n int)
func (*StreamBuffer) Consume ¶
func (this *StreamBuffer) Consume(n int)
func (*StreamBuffer) ExtendCap ¶
func (this *StreamBuffer) ExtendCap(capacity int)
func (*StreamBuffer) Len ¶
func (this *StreamBuffer) Len() int
func (*StreamBuffer) PreReadBuffer ¶
func (this *StreamBuffer) PreReadBuffer() []byte
func (*StreamBuffer) Reorganize ¶
func (this *StreamBuffer) Reorganize()
func (*StreamBuffer) Tail ¶
func (this *StreamBuffer) Tail() int
type Structures ¶
type Structures interface {
Name() string
}
数据结构的接口
func CreateStructures ¶
func CreateStructures(name string) Structures
type View ¶
type View interface { Name() string GetKey(key string) Structures SetKey(key string, s Structures) bool UpdateKey(key string, s Structures) DelKey(key string) bool FlushAll() GetKeyString(keyRef interface{}) (string, bool) Foreach(iterator interface{}, f func(key string, seq int64), n int, greaterThanSeq int64) (nextIterator interface{}) }
Click to show internal directories.
Click to hide internal directories.