Documentation ¶
Index ¶
- type Contact
- type Operator
- func (o *Operator) AddPeers(ctx context.Context, s cadata.Store, x State, name string, ids []PeerID) (*State, error)
- func (o *Operator) Create(ctx context.Context, s cadata.Store, x State, name string, ids []PeerID) (*State, error)
- func (o *Operator) Get(ctx context.Context, s cadata.Store, x State, name string) (*Contact, error)
- func (o *Operator) ListNames(ctx context.Context, s cadata.Store, x State) (ret []string, _ error)
- func (o *Operator) Lookup(ctx context.Context, s cadata.Store, x State, name string) (ret *UID, _ error)
- func (o *Operator) Merge(ctx context.Context, s cadata.Store, xs []State) (*State, error)
- func (o *Operator) New(ctx context.Context, s cadata.Store) (*State, error)
- func (o *Operator) PutInfo(ctx context.Context, s cadata.Store, x State, name string, ...) (*State, error)
- func (o *Operator) RemovePeer(ctx context.Context, s cadata.Store, x State, name string, peer PeerID) (*State, error)
- func (o *Operator) WhoIs(ctx context.Context, s cadata.Store, x State, peer PeerID) (string, error)
- type PeerID
- type Scheme
- func (p *Scheme) CanRead(ctx context.Context, s cadata.Getter, x State, peer owldag.PeerID) (bool, error)
- func (p *Scheme) ListPeers(ctx context.Context, s cadata.Getter, x State) ([]PeerID, error)
- func (p *Scheme) Merge(ctx context.Context, s cadata.Store, xs []State) (*State, error)
- func (p *Scheme) Sync(ctx context.Context, src cadata.Getter, dst cadata.Store, x State) error
- func (p *Scheme) Validate(ctx context.Context, s cadata.Getter, consult owldag.ConsultFunc, x State) error
- func (p *Scheme) ValidateStep(ctx context.Context, s cadata.Getter, consult owldag.ConsultFunc, ...) error
- type State
- type UID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Contact struct { Active []PeerID Info json.RawMessage }
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func (*Operator) RemovePeer ¶
Click to show internal directories.
Click to hide internal directories.