flag

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port       int
	KubeConfig string
	ApiKey     string // OPENAI_API_KEY
	ApiURL     string // OPENAI_API_URL
	ApiModel   string // OPENAI_MODEL
	Debug      bool   // 调试模式,同步修改所有的debug模式
	LogV       int    // klog的日志级别klog.V(this)
	InCluster  bool
	LoginType  string // password,oauth,token,..
	// 登录方式,默认为password
	AdminUserName  string // 管理员用户名
	AdminPassword  string // 管理员密码
	JwtTokenSecret string // JWT token secret
}

func Init

func Init() *Config

func (*Config) InitFlags

func (c *Config) InitFlags()

Jump to

Keyboard shortcuts

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