Documentation ¶
Index ¶
- func DBForTests(t testing.TB, logger *zap.Logger) *gorm.DB
- func TestHelperNewReplicationService(ctx context.Context, t *testing.T, logger *zap.Logger, ...) (*replicationService, ipfsutil.CoreAPIMock)
- func TestReplicateMessage(t *testing.T)
- type BertyOrbitDB
- type ReplicationClient
- type ReplicationService
- type TestingReplicationPeer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestHelperNewReplicationService ¶
func TestHelperNewReplicationService(ctx context.Context, t *testing.T, logger *zap.Logger, mn libp2p_mocknet.Mocknet, msrv *tinder.MockDriverServer, ds datastore.Batching, db *gorm.DB) (*replicationService, ipfsutil.CoreAPIMock)
func TestReplicateMessage ¶ added in v2.455.0
Types ¶
type BertyOrbitDB ¶
type ReplicationClient ¶
type ReplicationClient interface { replicationtypes.ReplicationServiceClient Close() error }
type ReplicationService ¶
type ReplicationService interface { replicationtypes.ReplicationServiceServer Close() error }
func NewReplicationService ¶
func NewReplicationService(ctx context.Context, db *gorm.DB, odb BertyOrbitDB, logger *zap.Logger) (ReplicationService, error)
type TestingReplicationPeer ¶
type TestingReplicationPeer struct { CoreAPI ipfsutil.CoreAPIMock Service ReplicationService }
func NewReplicationMockedPeer ¶
func NewReplicationMockedPeer(ctx context.Context, t *testing.T, secret []byte, sk ed25519.PublicKey, opts *weshnet.TestingOpts) *TestingReplicationPeer
Click to show internal directories.
Click to hide internal directories.