common

package
v0.0.0-...-e328feb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginDBMain     = "postgres"
	PluginTokenMaker = "paseto"
	PluginGin        = "gin-server"
	PluginDBMigrator = "db-migrator"
)

Variables

This section is empty.

Functions

func GetRequesterID

func GetRequesterID(ctx context.Context) (uint64, error)

Types

type Config

type Config struct {
	CTX        appctx.AppContext
	DB         *gorm.DB
	TokenMaker core.TokenMakerComponent
	Gin        core.GinComponent
	DBMigrator core.DBMigrationComponent
}

func NewConfig

func NewConfig(ctx appctx.AppContext) *Config

type Provider

type Provider string
const (
	ProviderLocal Provider = "LOCAL"
	ProviderS3    Provider = "S3"
)

type VideoStatus

type VideoStatus string
const (
	VideoStatusActive  VideoStatus = "ACTIVE"
	VideoStatusDeleted VideoStatus = "DELETED"
)

Jump to

Keyboard shortcuts

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