Documentation ¶
Index ¶
- Constants
- type CloudBucket
- func (cloudBucket *CloudBucket) Name() string
- func (cloudBucket *CloudBucket) ShouldAcceptReads(clientID string) bool
- func (cloudBucket *CloudBucket) ShouldAcceptWrites(clientID string) bool
- func (cloudBucket *CloudBucket) ShouldReplicateIncoming(peerID string) bool
- func (cloudBucket *CloudBucket) ShouldReplicateOutgoing(peerID string) bool
- type DefaultBucket
- func (defaultBucket *DefaultBucket) Name() string
- func (defaultBucket *DefaultBucket) ShouldAcceptReads(clientID string) bool
- func (defaultBucket *DefaultBucket) ShouldAcceptWrites(clientID string) bool
- func (defaultBucket *DefaultBucket) ShouldReplicateIncoming(peerID string) bool
- func (defaultBucket *DefaultBucket) ShouldReplicateOutgoing(peerID string) bool
- type LWWBucket
- func (lwwBucket *LWWBucket) Name() string
- func (lwwBucket *LWWBucket) ShouldAcceptReads(clientID string) bool
- func (lwwBucket *LWWBucket) ShouldAcceptWrites(clientID string) bool
- func (lwwBucket *LWWBucket) ShouldReplicateIncoming(peerID string) bool
- func (lwwBucket *LWWBucket) ShouldReplicateOutgoing(peerID string) bool
- type LocalBucket
- func (localBucket *LocalBucket) Name() string
- func (localBucket *LocalBucket) ShouldAcceptReads(clientID string) bool
- func (localBucket *LocalBucket) ShouldAcceptWrites(clientID string) bool
- func (localBucket *LocalBucket) ShouldReplicateIncoming(peerID string) bool
- func (localBucket *LocalBucket) ShouldReplicateOutgoing(peerID string) bool
Constants ¶
View Source
const ( CloudMode = iota RelayMode = iota CloudPeerID = "cloud" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudBucket ¶
type CloudBucket struct { Store // contains filtered or unexported fields }
func NewCloudBucket ¶
func NewCloudBucket(nodeID string, storageDriver StorageDriver, merkleDepth uint8, mode int) (*CloudBucket, error)
func (*CloudBucket) Name ¶
func (cloudBucket *CloudBucket) Name() string
func (*CloudBucket) ShouldAcceptReads ¶
func (cloudBucket *CloudBucket) ShouldAcceptReads(clientID string) bool
func (*CloudBucket) ShouldAcceptWrites ¶
func (cloudBucket *CloudBucket) ShouldAcceptWrites(clientID string) bool
func (*CloudBucket) ShouldReplicateIncoming ¶
func (cloudBucket *CloudBucket) ShouldReplicateIncoming(peerID string) bool
func (*CloudBucket) ShouldReplicateOutgoing ¶
func (cloudBucket *CloudBucket) ShouldReplicateOutgoing(peerID string) bool
type DefaultBucket ¶
type DefaultBucket struct {
Store
}
func NewDefaultBucket ¶
func NewDefaultBucket(nodeID string, storageDriver StorageDriver, merkleDepth uint8) (*DefaultBucket, error)
func (*DefaultBucket) Name ¶
func (defaultBucket *DefaultBucket) Name() string
func (*DefaultBucket) ShouldAcceptReads ¶
func (defaultBucket *DefaultBucket) ShouldAcceptReads(clientID string) bool
func (*DefaultBucket) ShouldAcceptWrites ¶
func (defaultBucket *DefaultBucket) ShouldAcceptWrites(clientID string) bool
func (*DefaultBucket) ShouldReplicateIncoming ¶
func (defaultBucket *DefaultBucket) ShouldReplicateIncoming(peerID string) bool
func (*DefaultBucket) ShouldReplicateOutgoing ¶
func (defaultBucket *DefaultBucket) ShouldReplicateOutgoing(peerID string) bool
type LWWBucket ¶
type LWWBucket struct {
Store
}
func NewLWWBucket ¶
func (*LWWBucket) ShouldAcceptReads ¶
func (*LWWBucket) ShouldAcceptWrites ¶
func (*LWWBucket) ShouldReplicateIncoming ¶
func (*LWWBucket) ShouldReplicateOutgoing ¶
type LocalBucket ¶
type LocalBucket struct {
Store
}
func NewLocalBucket ¶
func NewLocalBucket(nodeID string, storageDriver StorageDriver, merkleDepth uint8) (*LocalBucket, error)
func (*LocalBucket) Name ¶
func (localBucket *LocalBucket) Name() string
func (*LocalBucket) ShouldAcceptReads ¶
func (localBucket *LocalBucket) ShouldAcceptReads(clientID string) bool
func (*LocalBucket) ShouldAcceptWrites ¶
func (localBucket *LocalBucket) ShouldAcceptWrites(clientID string) bool
func (*LocalBucket) ShouldReplicateIncoming ¶
func (localBucket *LocalBucket) ShouldReplicateIncoming(peerID string) bool
func (*LocalBucket) ShouldReplicateOutgoing ¶
func (localBucket *LocalBucket) ShouldReplicateOutgoing(peerID string) bool
Click to show internal directories.
Click to hide internal directories.