Documentation
¶
Index ¶
- func PurgeDB(db datastore.DatabaseClient)
- func SeedAPIKey(db datastore.DatabaseClient, g *datastore.Group, uid, name, keyType string) (*datastore.APIKey, error)
- func SeedApplication(db datastore.DatabaseClient, g *datastore.Group, uid, title string, ...) (*datastore.Application, error)
- func SeedDefaultGroup(db datastore.DatabaseClient) (*datastore.Group, error)
- func SeedEndpoint(db datastore.DatabaseClient, app *datastore.Application, groupID string, ...) (*datastore.Endpoint, error)
- func SeedEvent(db datastore.DatabaseClient, app *datastore.Application, groupID string, ...) (*datastore.Event, error)
- func SeedEventDelivery(db datastore.DatabaseClient, app *datastore.Application, ...) (*datastore.EventDelivery, error)
- func SeedGroup(db datastore.DatabaseClient, uid, name string, cfg *datastore.GroupConfig) (*datastore.Group, error)
- func SeedMultipleApplications(db datastore.DatabaseClient, g *datastore.Group, count int) error
- func SeedMultipleEndpoints(db datastore.DatabaseClient, app *datastore.Application, groupID string, ...) ([]datastore.Endpoint, error)
- func SeedSource(db datastore.DatabaseClient, g *datastore.Group, uid string) (*datastore.Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PurgeDB ¶
func PurgeDB(db datastore.DatabaseClient)
PurgeDB is run after every test run and it's used to truncate the DB to have a clean slate in the next run.
func SeedAPIKey ¶
func SeedAPIKey(db datastore.DatabaseClient, g *datastore.Group, uid, name, keyType string) (*datastore.APIKey, error)
SeedAPIKey creates random api key for integration tests.
func SeedApplication ¶
func SeedApplication(db datastore.DatabaseClient, g *datastore.Group, uid, title string, disabled bool) (*datastore.Application, error)
SeedApplication is create random application for integration tests.
func SeedDefaultGroup ¶
func SeedDefaultGroup(db datastore.DatabaseClient) (*datastore.Group, error)
seed default group
func SeedEndpoint ¶
func SeedEndpoint(db datastore.DatabaseClient, app *datastore.Application, groupID string, events []string) (*datastore.Endpoint, error)
func SeedEvent ¶
func SeedEvent(db datastore.DatabaseClient, app *datastore.Application, groupID string, uid, eventType string, data []byte) (*datastore.Event, error)
SeedEvent creates a random event for integration tests.
func SeedEventDelivery ¶
func SeedEventDelivery(db datastore.DatabaseClient, app *datastore.Application, event *datastore.Event, endpoint *datastore.Endpoint, groupID string, uid string, status datastore.EventDeliveryStatus) (*datastore.EventDelivery, error)
SeedEventDelivery creates a random event delivery for integration tests.
func SeedGroup ¶
func SeedGroup(db datastore.DatabaseClient, uid, name string, cfg *datastore.GroupConfig) (*datastore.Group, error)
seed default group
func SeedMultipleEndpoints ¶
func SeedMultipleEndpoints(db datastore.DatabaseClient, app *datastore.Application, groupID string, events []string, count int) ([]datastore.Endpoint, error)
func SeedSource ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.