Help us shape the future of Go! Take the 2026 Go Developer Survey

social

package
v0.28.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

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 PeerRetirementResult struct {
	WorkspaceIDs   []string `json:"workspace_ids"`
	FriendGroupIDs []string `json:"friend_group_ids"`
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL