You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package config
-
- import (
- "github.com/zeromicro/go-zero/core/logx"
- "github.com/zeromicro/go-zero/core/stores/redis"
- "github.com/zeromicro/go-zero/zrpc"
- )
-
- type Config struct {
- zrpc.RpcServerConf
- DB struct {
- DataSource string
- }
- LogConf logx.LogConf
- SnowflakeConf SnowflakeConf
- RedisConf redis.RedisConf
- }
-
- // SnowflakeConf 雪花算法机器id配置
- type SnowflakeConf struct {
- MachineId int64 `json:"machineId"`
- }
|