Documentation ¶
Index ¶
- type NetKVMap
- func (n *NetKVMap) Get(bucket []byte) *Session
- func (n *NetKVMap) GetBucketList() []string
- func (n *NetKVMap) GetLocalBuckets() (r []string)
- func (n *NetKVMap) GetWithInfo(bucket []byte) (sess *Session, global bool)
- func (n *NetKVMap) Init()
- func (n *NetKVMap) IsNet(bucket []byte) (has, global bool)
- func (n *NetKVMap) Offer(provider string, bucket, meta []byte, global bool) bool
- func (n *NetKVMap) Remove(bucket []byte)
- type Provider
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetKVMap ¶
type NetKVMap struct {
// contains filtered or unexported fields
}
func (*NetKVMap) GetBucketList ¶
func (*NetKVMap) GetLocalBuckets ¶
func (*NetKVMap) GetWithInfo ¶
type Provider ¶
func (Provider) RegisterAs ¶
Used to register providers. Call this only during the init() phase.
type Session ¶
type Session struct { Closer io.Closer Reader bucketstore.BucketR Writer bucketstore.BucketW WriterEx bucketstore.BucketWEx }
Click to show internal directories.
Click to hide internal directories.