utils_test

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeedComplete seedTypes = "complete"
)

Variables

This section is empty.

Functions

func GetCache

func GetCache(cfg *config) (_cache.Cacher, error)

func GetConfig

func GetConfig() (*config, error)

func GetDB

func GetDB(cfg *config) (*gorm.DB, error)

func GetPubsub

func GetPubsub(cfg *config) (_pubsub.PubSub, error)

func GetService

func GetService(cfg *config, db *gorm.DB, c cache.Cacher, ps pubsub.PubSub) service.Service

func Seed

func Seed(db *gorm.DB, types ...seedTypes) error

func TruncateDB

func TruncateDB(db *gorm.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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