Documentation
¶
Overview ¶
Package sync provides backward compatibility facade for sync services New code should import the specific subpackages directly:
- next.orly.dev/pkg/sync/distributed
- next.orly.dev/pkg/sync/cluster
- next.orly.dev/pkg/sync/relaygroup
- next.orly.dev/pkg/sync/negentropy
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterManager ¶ added in v0.24.2
ClusterManager is the cluster replication manager
type Manager ¶
type Manager = distributed.Manager
Manager is the distributed sync manager
func NewManager ¶
func NewManager(ctx context.Context, db *database.D, nodeID, relayURL string, peers []string, relayGroupMgr *RelayGroupManager, policyManager interface { CheckPolicy(action string, ev *event.E, pubkey []byte, remote string) (bool, error) }) *Manager
NewManager creates a new distributed sync manager with backward compatible signature
type NIP11Cache ¶ added in v0.24.1
type NIP11Cache = common.NIP11Cache
NIP11Cache is the NIP-11 relay info cache
func NewNIP11Cache ¶ added in v0.24.1
func NewNIP11Cache(ttl time.Duration) *NIP11Cache
NewNIP11Cache creates a new NIP-11 cache
type RelayGroupConfig ¶ added in v0.24.1
type RelayGroupConfig = relaygroup.Config
RelayGroupConfig is the relay group configuration
type RelayGroupManager ¶ added in v0.24.1
type RelayGroupManager = relaygroup.Manager
RelayGroupManager is the relay group configuration manager
func NewRelayGroupManager ¶ added in v0.24.1
func NewRelayGroupManager(db *database.D, adminNpubs []string) *RelayGroupManager
NewRelayGroupManager creates a new relay group manager with backward compatible signature
Source Files
¶
- sync.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cluster provides cluster replication with persistent state
|
Package cluster provides cluster replication with persistent state |
|
grpc
Package grpc provides a gRPC client for the cluster sync service.
|
Package grpc provides a gRPC client for the cluster sync service. |
|
server
Package server provides the gRPC server implementation for cluster sync.
|
Package server provides the gRPC server implementation for cluster sync. |
|
Package common provides shared utilities for sync services
|
Package common provides shared utilities for sync services |
|
Package distributed provides serial-based peer-to-peer synchronization
|
Package distributed provides serial-based peer-to-peer synchronization |
|
grpc
Package grpc provides a gRPC client for the distributed sync service.
|
Package grpc provides a gRPC client for the distributed sync service. |
|
server
Package server provides the gRPC server implementation for distributed sync.
|
Package server provides the gRPC server implementation for distributed sync. |
|
Package negentropy provides NIP-77 negentropy-based set reconciliation for both relay-to-relay sync and client-facing WebSocket operations.
|
Package negentropy provides NIP-77 negentropy-based set reconciliation for both relay-to-relay sync and client-facing WebSocket operations. |
|
grpc
Package grpc provides a gRPC client for the negentropy sync service.
|
Package grpc provides a gRPC client for the negentropy sync service. |
|
server
Package server provides the gRPC server implementation for negentropy sync.
|
Package server provides the gRPC server implementation for negentropy sync. |
|
Package relaygroup provides relay group configuration management
|
Package relaygroup provides relay group configuration management |
|
grpc
Package grpc provides a gRPC client for the relay group service.
|
Package grpc provides a gRPC client for the relay group service. |
|
server
Package server provides the gRPC server implementation for relay group.
|
Package server provides the gRPC server implementation for relay group. |
Click to show internal directories.
Click to hide internal directories.