internal

package
v0.0.0-...-aa3a8fa Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(funcs ...HandleJwt) gin.HandlerFunc

func AuthCacheUpdateToken

func AuthCacheUpdateToken(ctx context.Context, d *ginx.JwtData) (err *errx.ErrX)

func Cors

func Cors(origins []string, maxAges ...time.Duration) gin.HandlerFunc

func Exit

func Exit() (err error)

func Load

func Load(project *viper.Viper, migrations embed.FS) (err error)

func Run

func Run(project *viper.Viper) (errch chan error, err error)

func ServeGrpc

func ServeGrpc(listener net.Listener, errch chan<- error)

func ServeHTTP

func ServeHTTP(listener net.Listener, errch chan<- error)

func ServeInternal

func ServeInternal(listener net.Listener, errch chan<- error)

func SetupHttp

func SetupHttp(release bool, config *viper.Viper) (err error)

func SetupInternal

func SetupInternal(config *viper.Viper, meta map[string]any) (err error)

func SetupLog

func SetupLog(appName string, release bool) (err error)

Types

type HandleJwt

type HandleJwt func(context.Context, *ginx.JwtData) *errx.ErrX

func AllowRoles

func AllowRoles(roles ...string) HandleJwt

Directories

Path Synopsis
biz

Jump to

Keyboard shortcuts

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