Documentation ¶
Index ¶
- func DBForTests(t testing.TB, logger *zap.Logger) (*gorm.DB, func())
- func TestHelperNewReplicationService(ctx context.Context, t *testing.T, logger *zap.Logger, ...) (*replicationService, context.CancelFunc)
- type BertyOrbitDB
- type ReplicationClient
- type ReplicationService
- type TestingReplicationPeer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 {
Service ReplicationService
}
func NewReplicationMockedPeer ¶
func NewReplicationMockedPeer(ctx context.Context, t *testing.T, secret []byte, sk ed25519.PublicKey, opts *bertyprotocol.TestingOpts) (*TestingReplicationPeer, func())
Click to show internal directories.
Click to hide internal directories.