| | |
| | | package config |
| | | |
| | | type System struct { |
| | | Env string `mapstructure:"env" json:"env" yaml:"env"` // 环境值 |
| | | DbType string `mapstructure:"db-type" json:"db-type" yaml:"db-type"` // 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql |
| | | OssType string `mapstructure:"oss-type" json:"oss-type" yaml:"oss-type"` // Oss类型 |
| | | RouterPrefix string `mapstructure:"router-prefix" json:"router-prefix" yaml:"router-prefix"` |
| | | Addr int `mapstructure:"addr" json:"addr" yaml:"addr"` // 端口值 |
| | | LimitCountIP int `mapstructure:"iplimit-count" json:"iplimit-count" yaml:"iplimit-count"` |
| | | LimitTimeIP int `mapstructure:"iplimit-time" json:"iplimit-time" yaml:"iplimit-time"` |
| | | UseMultipoint bool `mapstructure:"use-multipoint" json:"use-multipoint" yaml:"use-multipoint"` // 多点登录拦截 |
| | | UseRedis bool `mapstructure:"use-redis" json:"use-redis" yaml:"use-redis"` // 使用redis |
| | | GrpcUrl string `mapstructure:"grpc-url" json:"grpc-url" yaml:"grpc-url"` // grpc服务地址 |
| | | GrpcAdminUrl string `mapstructure:"grpc-admin-url" json:"grpc-admin-url" yaml:"grpc-admin-url"` // grpc服务地址 |
| | | Env string `mapstructure:"env" json:"env" yaml:"env"` // 环境值 |
| | | DbType string `mapstructure:"db-type" json:"db-type" yaml:"db-type"` // 数据库类型:mysql(默认)|sqlite|sqlserver|postgresql |
| | | RouterPrefix string `mapstructure:"router-prefix" json:"router-prefix" yaml:"router-prefix"` |
| | | Addr int `mapstructure:"addr" json:"addr" yaml:"addr"` // 端口值 |
| | | GrpcPort string `mapstructure:"grpc-port" json:"grpc-port" yaml:"grpc-port"` // 对外提供服务grpc端口 |
| | | GrpcUrl string `mapstructure:"grpc-url" json:"grpc-url" yaml:"grpc-url"` // aps grpc服务地址 |
| | | GrpcAdminUrl string `mapstructure:"grpc-admin-url" json:"grpc-admin-url" yaml:"grpc-admin-url"` // admin grpc服务地址 |
| | | GrpcWmsUrl string `mapstructure:"grpc-wms-url" json:"grpc-wms-url" yaml:"grpc-wms-url"` // wms grpc服务地址 |
| | | } |