Versions in this module Expand all Collapse all v1 v1.2.2 Jan 31, 2023 v1.2.1 Nov 6, 2022 v1.2.0 Nov 6, 2022 Changes in this version + type AliyunOSS struct + AccessKeyId string + AccessKeySecret string + BasePath string + BucketName string + BucketUrl string + Endpoint string + func (a *AliyunOSS) DeleteFile(key string) error + func (a *AliyunOSS) NewBucket() (*oss.Bucket, error) + func (a *AliyunOSS) UploadFile(file *multipart.FileHeader) (string, string, error) type Config + Notify Notify + Upload Upload + type HuaWeiObs struct + AccessKey string + Bucket string + Endpoint string + Path string + SecretKey string + func (h *HuaWeiObs) DeleteFile(key string) error + func (h *HuaWeiObs) NewHuaWeiObsClient() (client *obs.ObsClient, err error) + func (h *HuaWeiObs) UploadFile(file *multipart.FileHeader) (filename string, filepath string, err error) + type Local struct + Path string + func (l *Local) DeleteFile(key string) error + func (l *Local) UploadFile(file *multipart.FileHeader) (string, string, error) + type Notify struct + Email Email + WebHook WebHook + type Qiniu struct + AccessKey string + Bucket string + ImgPath string + SecretKey string + UseCdnDomains bool + UseHTTPS bool + Zone string + func (q *Qiniu) Config() *storage.Config + func (q *Qiniu) DeleteFile(key string) error + func (q *Qiniu) UploadBytes(data []byte) (string, string, error) + func (q *Qiniu) UploadFile(file *multipart.FileHeader) (string, string, error) type System + UploadType string + type TencentCOS struct + BaseURL string + Bucket string + PathPrefix string + Region string + SecretID string + SecretKey string + func (t *TencentCOS) DeleteFile(key string) error + func (t *TencentCOS) NewClient() *cos.Client + func (t *TencentCOS) UploadFile(file *multipart.FileHeader) (string, string, error) + type Upload struct + AliyunOSS AliyunOSS + HuaWeiObs HuaWeiObs + Local Local + Qiniu Qiniu + TencentCOS TencentCOS v1.1.2 Nov 2, 2022 v1.1.0 Nov 2, 2022 v1.0.1 Nov 2, 2022 Changes in this version + const ApiModule + const ERROR + const EnvProduction + const EnvTesting + const ErrorJobFormat + const ErrorRequestParameter + const ErrorTokenGenerate + const ErrorUserNameExist + const ExtensionInI + const ExtensionJson + const ExtensionYaml + const NameSpace + const SUCCESS + const Version + func FailWithCode(code int, c *gin.Context) + func FailWithDetailed(code int, data interface{}, message string, c *gin.Context) + func FailWithMessage(code int, message string, c *gin.Context) + func Ok(c *gin.Context) + func OkWithData(data interface{}, c *gin.Context) + func OkWithDetailed(data interface{}, message string, c *gin.Context) + func OkWithMessage(message string, c *gin.Context) + func Result(code int, data interface{}, msg string, c *gin.Context) + type ByID struct + ID int + type ByIDS struct + IDS []int + type Config struct + Email Email + Etcd Etcd + Log Log + Mysql Mysql + Redis Redis + System System + WebHook WebHook + func GetConfigModels() *Config + func LoadConfig(env, configFileName string) (*Config, error) + type Email struct + From string + Host string + IsSSL bool + Nickname string + Port int + Secret string + To []string + type Environment string + func NewGlobalEnvironment() (Environment, error) + func (env *Environment) Production() Environment + func (env *Environment) String() string + func (env *Environment) Testing() Environment + func (env Environment) Invalid() bool + type Etcd struct + DialTimeout int64 + Endpoints []string + Password string + ReqTimeout int64 + Username string + type Log struct + Director string + EncodeLevel string + Format string + Level string + LogInConsole bool + Prefix string + ShowLine bool + StacktraceKey string + type Mysql struct + Config string + Dbname string + LogMode string + LogZap bool + MaxIdleConns int + MaxOpenConns int + Password string + Path string + Port string + Username string + func (m *Mysql) Dsn() string + func (m *Mysql) EmptyDsn() string + type PageInfo struct + Page int + PageSize int + func (page *PageInfo) Check() + type PageResult struct + List interface{} + Page int + PageSize int + Total int64 + type Redis struct + Addr string + DB int + Password string + type Response struct + Code int + Data interface{} + Msg string + type System struct + Addr int + Env string + Version string + type WebHook struct + Kind string + Url string v1.0.0 Nov 2, 2022