integration

package
v0.0.0-...-d389d3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeMiddlewareAndRoutes

func InitializeMiddlewareAndRoutes(middleware middlewares.Middlewares, route routes.Routes) error

InitializeMiddlewareAndRoutes is a InvokeFunc that should be passed to fx.Invoke.

func MigrationUp

func MigrationUp(migrator migration.Migrator) error

MigrationUp is a InvokeFunc that should be passed to fx.Invoke.

func Runner

func Runner(tb testing.TB, test TestRunner, option fx.Option, initializers ...interface{}) *fx.App

func TruncateDatabase

func TruncateDatabase(db persistence.Database, config *config.AppConfig) error

TruncateDatabase is a InvokeFunc that should be passed to fx.Invoke.

func WithApplicationAndApplyMigration

func WithApplicationAndApplyMigration(opts ...fx.Option) fx.Option

func WithDatabaseName

func WithDatabaseName(t *testing.T, testFuncName string) fx.Option

func WithPersistence

func WithPersistence() fx.Option

func WithPersistenceAndApplyMigration

func WithPersistenceAndApplyMigration(opts ...fx.Option) fx.Option

Types

type InvokeFunc

type InvokeFunc any

type TestRunner

type TestRunner any

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL