api

package
v0.0.0-...-eb626f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAuth

func InitAuth() (auth.Repository, func(), error)

func InitCaptcha

func InitCaptcha()

func InitCasbin

func InitCasbin(adapter application.RbacAdapter) (*casbin.SyncedEnforcer, func(), error)

func InitGinEngine

func InitGinEngine(r router.Router) *gin.Engine

func InitHTTPServer

func InitHTTPServer(ctx context.Context, handler http.Handler) func()

func InitMonitor

func InitMonitor(ctx context.Context) func()

Types

type Option

type Option func(*Options)

func SetConfigFile

func SetConfigFile(s string) Option

func SetMenuFile

func SetMenuFile(s string) Option

func SetModelFile

func SetModelFile(s string) Option

func SetVersion

func SetVersion(s string) Option

func SetWWWDir

func SetWWWDir(s string) Option

type Options

type Options struct {
	ConfigFile string
	ModelFile  string
	MenuFile   string
	WWWDir     string
	Version    string
}

Jump to

Keyboard shortcuts

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