Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerRetirement ¶
type PeerRetirement struct {
Contacts *contact.Server
Friends *friend.Server
FriendGroups *friendgroup.Server
}
func (PeerRetirement) RetirePeerSocial ¶
func (r PeerRetirement) RetirePeerSocial(ctx context.Context, snapshot PeerSnapshot) (PeerRetirementResult, error)
func (PeerRetirement) SnapshotPeerSocial ¶
func (r PeerRetirement) SnapshotPeerSocial(ctx context.Context, publicKey string) (PeerSnapshot, error)
type PeerRetirementResult ¶
type PeerSnapshot ¶
type PeerSnapshot struct {
PublicKey string `json:"public_key"`
Contacts []contact.PeerRetirementContact `json:"contacts"`
Friends []friend.PeerRetirementFriend `json:"friends"`
Groups []friendgroup.PeerRetirementGroup `json:"groups"`
}
PeerSnapshot is persisted by the Peer coordinator before Social mutation.
Click to show internal directories.
Click to hide internal directories.