1 Star 0 Fork 0

dpnogo / iam

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
validation.go 782 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Copyright 2020 Lingfei Kong <colin404@foxmail.com>. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package options
// Validate checks Options and return a slice of found errs.
func (o *Option) Validate() []error {
var errs []error
errs = append(errs, o.FeatureOptions.Validate()...)
errs = append(errs, o.GRPCOptions.Validate()...)
errs = append(errs, o.HttpOption.Validate()...)
errs = append(errs, o.HttpsOption.Validate()...)
errs = append(errs, o.JwtOption.Validate()...)
errs = append(errs, o.MysqlOption.Validate()...)
errs = append(errs, o.RedisOption.Validate()...)
errs = append(errs, o.ServerRunOption.Validate()...)
errs = append(errs, o.LogOption.Validate()...)
return errs
}
1
https://gitee.com/GomiTo/iam.git
git@gitee.com:GomiTo/iam.git
GomiTo
iam
iam
455e706b39fb

搜索帮助