config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

@Title @Description @Author Wangwengang 2021/6/27 下午1:27 @Update Wangwengang 2021/6/27 下午1:27

@Title @Description @Author Wangwengang 2021/6/26 下午3:52 @Update Wangwengang 2021/6/26 下午3:52

@Title @Description @Author Wangwengang 2021/6/6 下午8:42 @Update Wangwengang 2021/6/6 下午8:42

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

type Captcha struct {
	KeyLong   int `mapstructure:"key-long" json:"keyLong" yaml:"key-long"`
	ImgWidth  int `mapstructure:"img-width" json:"imgWidth" yaml:"img-width"`
	ImgHeight int `mapstructure:"img-height" json:"imgHeight" yaml:"img-height"`
}

type Casbin

type Casbin struct {
	ModelPath string `mapstructure:"model-path" json:"modelPath" yaml:"model-path"`
}

type JWT

type JWT struct {
	SigningKey  string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"`
	ExpiresTime int64  `mapstructure:"expires-time" json:"expiresTime" yaml:"expires-time"`
	BufferTime  int64  `mapstructure:"buffer-time" json:"bufferTime" yaml:"buffer-time"`
	White       string `mapstructure:"white" json:"white" yaml:"white"`
}

type Jiguang

type Jiguang struct {
	PrivateKey         string `mapstructure:"private-key" json:"privateKey" yaml:"private-key"`
	AppKey             string `mapstructure:"app-key" json:"appKey" yaml:"app-key"`
	MasterSecret       string `mapstructure:"master-secret" json:"masterSecret" yaml:"master-secret"`
	AppKeyMasterSecret string `mapstructure:"app-key-master-secret" json:"appKeyMasterSecret" yaml:"app-key-master-secret"`
}

type Local

type Local struct {
	Path string `mapstructure:"path" json:"path" yaml:"path" `
}

type Mysql

type Mysql struct {
	Path         string `mapstructure:"path" json:"path" yaml:"path"`
	Config       string `mapstructure:"config" json:"config" yaml:"config"`
	Dbname       string `mapstructure:"db-name" json:"dbname" yaml:"db-name"`
	Username     string `mapstructure:"username" json:"username" yaml:"username"`
	Password     string `mapstructure:"password" json:"password" yaml:"password"`
	MaxIdleConns int    `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
	MaxOpenConns int    `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"`
	LogMode      bool   `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"`
	LogZap       string `mapstructure:"log-zap" json:"logZap" yaml:"log-zap"`
}

func (*Mysql) Dsn

func (m *Mysql) Dsn() string

type Nsq

type Nsq struct {
	NsqdAddr       string `mapstructure:"nsqd-addr" json:"nsqdAddr" yaml:"nsqd-addr"`
	NsqLookupdAddr string `mapstructure:"nsq-lookupd-addr" json:"nsqLookupdAddr" yaml:"nsq-lookupd-addr"`
}

type Qiniu

type Qiniu struct {
	Zone          string `mapstructure:"zone" json:"zone" yaml:"zone"`
	Bucket        string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
	ImgPath       string `mapstructure:"img-path" json:"imgPath" yaml:"img-path"`
	UseHTTPS      bool   `mapstructure:"use-https" json:"useHttps" yaml:"use-https"`
	AccessKey     string `mapstructure:"access-key" json:"accessKey" yaml:"access-key"`
	SecretKey     string `mapstructure:"secret-key" json:"secretKey" yaml:"secret-key"`
	UseCdnDomains bool   `mapstructure:"use-cdn-domains" json:"useCdnDomains" yaml:"use-cdn-domains"`
}

type Redis

type Redis struct {
	DB       int    `mapstructure:"db" json:"db" yaml:"db"`
	Addr     string `mapstructure:"addr" json:"addr" yaml:"addr"`
	Password string `mapstructure:"password" json:"password" yaml:"password"`
}

type Server

type Server struct {
	JWT     JWT     `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
	Zap     Zap     `mapstructure:"zap" json:"zap" yaml:"zap"`
	Casbin  Casbin  `mapstructure:"casbin" json:"casbin" yaml:"casbin"`
	System  System  `mapstructure:"system" json:"system" yaml:"system"`
	Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
	// gorm
	MysqlYinfu Mysql `mapstructure:"mysql-yinfu" json:"mysqlYinfu" yaml:"mysql-yinfu"`
	// redis
	Redis   Redis   `mapstructure:"redis" json:"redis" yaml:"redis"`
	Jiguang Jiguang `mapstructure:"jiguang" json:"jiguang" yaml:"jiguang"`

	TencentLive TencentLive `mapstructure:"tencent-live" json:"tencentLive" yaml:"tencent-live"`
	TencentIM   TencentIM   `mapstructure:"tencent-im" json:"tencentIm" yaml:"tencent-im"`

	// 七牛云
	Qiniu Qiniu `mapstructure:"qiniu" json:"qiniu" yaml:"qiniu"`

	Nsq Nsq `mapstructure:"nsq" json:"nsq" yaml:"nsq"`
}

type System

type System struct {
	Env      string `mapstructure:"env" json:"env" yaml:"env"`
	Addr     int    `mapstructure:"addr" json:"addr" yaml:"addr"`
	EtcdAddr string `mapstructure:"etcd-addr" json:"etcdAddr" yaml:"etcd-addr"`
	BathPath string `mapstructure:"base-path" json:"basePath" yaml:"base-path"`
}

type TencentIM

type TencentIM struct {
	SDKAppID   int    `mapstructure:"sdkapp-id" json:"sdkappId" yaml:"sdkapp-id"`
	Key        string `mapstructure:"key" json:"key" yaml:"key"`
	Expire     int    `mapstructure:"expire" json:"expire" yaml:"expire"`
	Identifier string `mapstructure:"identifier" json:"identifier" yaml:"identifier"`
}

type TencentLive

type TencentLive struct {
	Key        string `mapstructure:"key" json:"key" yaml:"key"`
	PushDomain string `mapstructure:"push-domain" json:"pushDomain" yaml:"push-domain"`
	PullDomain string `mapstructure:"pull-domain" json:"pullDomain" yaml:"pull-domain"`
}

type Zap

type Zap struct {
	Level         string `mapstructure:"level" json:"level" yaml:"level"`
	Format        string `mapstructure:"format" json:"format" yaml:"format"`
	Prefix        string `mapstructure:"prefix" json:"prefix" yaml:"prefix"`
	Director      string `mapstructure:"director" json:"director"  yaml:"director"`
	LinkName      string `mapstructure:"link-name" json:"linkName" yaml:"link-name"`
	ShowLine      bool   `mapstructure:"show-line" json:"showLine" yaml:"showLine"`
	EncodeLevel   string `mapstructure:"encode-level" json:"encodeLevel" yaml:"encode-level"`
	StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey" yaml:"stacktrace-key"`
	LogInConsole  bool   `mapstructure:"log-in-console" json:"logInConsole" yaml:"log-in-console"`
}

Jump to

Keyboard shortcuts

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