cmd

package
v0.0.0-...-bc6e940 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBMigrateUp

func DBMigrateUp(logger *logger.Logger, db *sdksql.DB, embedFS embed.FS)

DBMigrateUp is a command to migrate Database

func DBSeedUp

func DBSeedUp(logger *logger.Logger, db *sdksql.DB, embedFS embed.FS)

DBSeedUp is used to seed database

func NewCommand

func NewCommand(di CommandDI) *cobra.Command

NewCommand returns a new Set of commands for the given server

Types

type CommandDI

type CommandDI struct {
	HTTPServer  *http.Server
	HTTPSServer *http.Server
	Logger      *logger.Logger
	DB          *sdksql.DB
	EmbedFS     embed.FS
}

CommandDI is used to inject command dependencies

Jump to

Keyboard shortcuts

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