Documentation ¶
Index ¶
- Variables
- func GetOssDomain() string
- func Initialize(suite []string, noDefault bool)
- func MustGormDB() *gorm.DB
- func OpenSqlite3() (*sql.DB, error)
- func RunMode() string
- type AliOSSSettingS
- type AlipaySettingS
- type AppSettingS
- type BigCacheIndexSettingS
- type COSSettingS
- type CacheIndexSettingS
- type DatabaseSetingS
- type GRPCServerSettingS
- type HttpServerSettingS
- type HuaweiOBSSettingS
- type JWTSettingS
- type LocalOSSSettingS
- type LoggerFileSettingS
- type LoggerMeiliSettingS
- type LoggerSettingS
- type LoggerZincSettingS
- type MeiliSettingS
- type MinIOSettingS
- type MySQLSettingS
- type ObjectStorageS
- type PostgresSettingS
- type PyroscopeSettingS
- type RedisSettingS
- type S3SettingS
- type Setting
- type SimpleCacheIndexSettingS
- type SmsJuheSettings
- type Sqlite3SettingS
- type TweetSearchS
- type ZincSettingS
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PyroscopeSetting *PyroscopeSettingS DatabaseSetting *DatabaseSetingS MysqlSetting *MySQLSettingS PostgresSetting *PostgresSettingS Sqlite3Setting *Sqlite3SettingS ServerSetting *HttpServerSettingS WebServerSetting *HttpServerSettingS AdminServerSetting *HttpServerSettingS SpaceXServerSetting *HttpServerSettingS BotServerSetting *HttpServerSettingS LocalossServerSetting *HttpServerSettingS FrontendWebSetting *HttpServerSettingS DocsServerSetting *HttpServerSettingS MobileServerSetting *GRPCServerSettingS AppSetting *AppSettingS CacheIndexSetting *CacheIndexSettingS SimpleCacheIndexSetting *SimpleCacheIndexSettingS BigCacheIndexSetting *BigCacheIndexSettingS SmsJuheSetting *SmsJuheSettings AlipaySetting *AlipaySettingS TweetSearchSetting *TweetSearchS ZincSetting *ZincSettingS MeiliSetting *MeiliSettingS ObjectStorage *ObjectStorageS AliOSSSetting *AliOSSSettingS COSSetting *COSSettingS HuaweiOBSSetting *HuaweiOBSSettingS MinIOSetting *MinIOSettingS S3Setting *S3SettingS LocalOSSSetting *LocalOSSSettingS JWTSetting *JWTSettingS Mutex *sync.Mutex )
View Source
var (
Redis *redis.Client
)
Functions ¶
func GetOssDomain ¶ added in v0.2.0
func GetOssDomain() string
func Initialize ¶
func MustGormDB ¶ added in v0.2.0
func OpenSqlite3 ¶ added in v0.2.0
Types ¶
type AliOSSSettingS ¶
type AlipaySettingS ¶
type AppSettingS ¶
type BigCacheIndexSettingS ¶ added in v0.2.0
type COSSettingS ¶ added in v0.2.0
type CacheIndexSettingS ¶ added in v0.2.0
type DatabaseSetingS ¶
type GRPCServerSettingS ¶ added in v0.2.0
type HttpServerSettingS ¶ added in v0.2.0
type HttpServerSettingS struct { RunMode string HttpIp string HttpPort string ReadTimeout time.Duration WriteTimeout time.Duration }
func (*HttpServerSettingS) GetReadTimeout ¶ added in v0.2.0
func (s *HttpServerSettingS) GetReadTimeout() time.Duration
func (*HttpServerSettingS) GetWriteTimeout ¶ added in v0.2.0
func (s *HttpServerSettingS) GetWriteTimeout() time.Duration
type HuaweiOBSSettingS ¶ added in v0.2.0
type LocalOSSSettingS ¶
type LoggerFileSettingS ¶
type LoggerMeiliSettingS ¶ added in v0.2.0
type LoggerMeiliSettingS struct { Host string Index string ApiKey string Secure bool MaxLogBuffer int MinWorker int }
func (*LoggerMeiliSettingS) Endpoint ¶ added in v0.2.0
func (s *LoggerMeiliSettingS) Endpoint() string
type LoggerSettingS ¶ added in v0.2.0
type LoggerSettingS struct {
Level string
}
type LoggerZincSettingS ¶
func (*LoggerZincSettingS) Endpoint ¶ added in v0.2.0
func (s *LoggerZincSettingS) Endpoint() string
type MeiliSettingS ¶ added in v0.2.0
func (*MeiliSettingS) Endpoint ¶ added in v0.2.0
func (s *MeiliSettingS) Endpoint() string
type MinIOSettingS ¶
type MySQLSettingS ¶
type MySQLSettingS struct { UserName string Password string Host string DBName string Charset string ParseTime bool MaxIdleConns int MaxOpenConns int }
func (*MySQLSettingS) Dsn ¶
func (s *MySQLSettingS) Dsn() string
type ObjectStorageS ¶ added in v0.2.0
func (*ObjectStorageS) TempDirSlash ¶ added in v0.2.0
func (s *ObjectStorageS) TempDirSlash() string
type PostgresSettingS ¶
func (PostgresSettingS) Dsn ¶
func (s PostgresSettingS) Dsn() string
type PyroscopeSettingS ¶ added in v0.2.0
func (*PyroscopeSettingS) GetLogger ¶ added in v0.2.0
func (s *PyroscopeSettingS) GetLogger() (logger pyroscope.Logger)
type RedisSettingS ¶
type S3SettingS ¶
type SmsJuheSettings ¶
type Sqlite3SettingS ¶
type Sqlite3SettingS struct {
Path string
}
func (*Sqlite3SettingS) Dsn ¶ added in v0.2.0
func (s *Sqlite3SettingS) Dsn(driverName string) string
type TweetSearchS ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.