Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTestDocument ¶
BuildTestDocument builds a test DID document
func DeleteCreatedEntities ¶
DeleteCreatedEntities sets up a hook to clean up the db after the test
func GetTestDBConnection ¶
GetTestDBConnection returns a new gorm Database connection for the local docker instance
Types ¶
type DBCreds ¶
DBCreds is a struct to contain the creds for the test db
func GetTestDBCreds ¶
func GetTestDBCreds() DBCreds
GetTestDBCreds returns the credentials for the local docker instance dependent on env vars.
type FakePubSubService ¶
type FakePubSubService struct{}
FakePubSubService stubs out a pub sub service
func (*FakePubSubService) PublishAdd ¶
func (*FakePubSubService) PublishAdd(token *jwt.Token) error
PublishAdd does nothing
func (*FakePubSubService) PublishRevoke ¶
func (*FakePubSubService) PublishRevoke(token *jwt.Token) error
PublishRevoke does nothing
Click to show internal directories.
Click to hide internal directories.