helpers

package
v0.0.0-...-e1dc5e0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ROOT_DIR, _   = utils.GetRootDir()
	FRONTEND_DIR  = filepath.Join(ROOT_DIR, "/frontend")
	MOBILE_DIR    = filepath.Join(FRONTEND_DIR, "/mobile")
	DASHBOARD_DIR = filepath.Join(FRONTEND_DIR, "/dashboard")
	LIB_DIR       = filepath.Join(FRONTEND_DIR, "/lib")
	WEB_DIR       = filepath.Join(FRONTEND_DIR, "/web")
	BACKEND_DIR   = filepath.Join(ROOT_DIR, "/backend")
	CLI_DIR       = filepath.Join(ROOT_DIR, "/cli")
	CONFIG_FILE   = filepath.Join(ROOT_DIR, "/config/.env.template")
	MIGRATIONS    = filepath.Join(BACKEND_DIR, "/migrations")
	MOCK_FILE     = filepath.Join(BACKEND_DIR, "/mock/data.sql")
)
View Source
var (
	FRONTEND_RUN_TARGETS = []string{"web", "mobile", "dashboard"}
	FRONTEND_CI_TARGETS  = []string{"web", "mobile", "dashboard", "lib"}
)
View Source
var TARGET_DIRS = map[string]string{
	"web":       WEB_DIR,
	"mobile":    MOBILE_DIR,
	"dashboard": DASHBOARD_DIR,
	"lib":       LIB_DIR,
}

Functions

func CleanTestDBs

func CleanTestDBs() error

func DownDB

func DownDB() error

func DownRedis

func DownRedis() error

func Execute

func Execute(cmd *exec.Cmd, dir string) error

func InitDB

func InitDB() error

func InsertDB

func InsertDB() error

func RestartRedis

func RestartRedis() error

func RunBackend

func RunBackend() error

func UpRedis

func UpRedis() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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