provider

package
v0.0.0-...-1cbb08c Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresDB

func NewPostgresDB(conf *config.Config) *gorm.DB

func NewRedisClient

func NewRedisClient(conf *config.Config) *redis.Client

Types

type Action

type Action func(ctx *cliV2.Context, conf *config.Config) error

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(app *cliV2.App) *App

func (*App) Register

func (a *App) Register(cm Command)

func (*App) Run

func (a *App) Run()

type Command

type Command struct {
	Name        string
	Usage       string
	Flags       []cliV2.Flag
	Action      Action
	Subcommands []Command
}

Jump to

Keyboard shortcuts

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