Documentation
¶
Index ¶
- Constants
- func Init(rowVal *Config, path string) *viper.Viper
- func ReadEnv(rowVal interface{}) *viper.Viper
- type Admin
- type App
- type Cache
- type Config
- type Gin
- type GithubOauth
- type GoogleOauth
- type Gorm
- type Jwt
- type Ldap
- type LdapUser
- type Logger
- type Mysql
- type OidcOauth
- type Oss
- type Proxy
- type Redis
- type Rustdesk
Constants ¶
View Source
const ( DebugMode = "debug" ReleaseMode = "release" DefaultConfig = "conf/config.yaml" )
View Source
const ( TypeSqlite = "sqlite" TypeMysql = "mysql" )
View Source
const ( DefaultIdServerPort = 21116 DefaultRelayServerPort = 21117 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GithubOauth ¶
type GoogleOauth ¶
type Ldap ¶
type Ldap struct { Enable bool `mapstructure:"enable"` Url string `mapstructure:"url"` TLS bool `mapstructure:"tls"` TlsVerify bool `mapstructure:"tls-verify"` BaseDn string `mapstructure:"base-dn"` BindDn string `mapstructure:"bind-dn"` BindPassword string `mapstructure:"bind-password"` User LdapUser `mapstructure:"user"` }
type LdapUser ¶
type LdapUser struct { BaseDn string `mapstructure:"base-dn"` // The base DN of the user for searching EnableAttr string `mapstructure:"enable-attr"` // The attribute name of the user for enabling, in AD it is "userAccountControl", empty means no enable attribute, all users are enabled EnableAttrValue string `mapstructure:"enable-attr-value"` // The value of the enable attribute when the user is enabled. If you are using AD, just leave it random str, it will be ignored. Filter string `mapstructure:"filter"` Username string `mapstructure:"username"` Email string `mapstructure:"email"` FirstName string `mapstructure:"first-name"` LastName string `mapstructure:"last-name"` Sync bool `mapstructure:"sync"` // Will sync the user's information to the internal database AdminGroup string `mapstructure:"admin-group"` // Which group is the admin group }
type Rustdesk ¶
type Rustdesk struct { IdServer string `mapstructure:"id-server"` IdServerPort int `mapstructure:"-"` RelayServer string `mapstructure:"relay-server"` RelayServerPort int `mapstructure:"-"` ApiServer string `mapstructure:"api-server"` Key string `mapstructure:"key"` KeyFile string `mapstructure:"key-file"` Personal int `mapstructure:"personal"` //webclient-magic-queryonline WebclientMagicQueryonline int `mapstructure:"webclient-magic-queryonline"` }
func (*Rustdesk) LoadKeyFile ¶
func (rd *Rustdesk) LoadKeyFile()
Click to show internal directories.
Click to hide internal directories.