Skip to content

Commit

Permalink
♻️ refactor: updated timeout alias #9
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jan 15, 2024
1 parent c392de7 commit f0b4812
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bot/slack/slack_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type SlackConfig struct {
DebugMode bool `json:"debug_mode" yaml:"debug_mode"`
ChannelId []string `json:"channel_id" binding:"required" yaml:"channel_id"`
Token string `json:"-" binding:"required" yaml:"token"`
Timeout time.Duration `json:"-" yaml:"-"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}

type slackOptionConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion bot/telegram/telegram_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type TelegramConfig struct {
DebugMode bool `json:"debug_mode" yaml:"debug_mode"`
ChatID []int64 `json:"chat_id" binding:"required" yaml:"chat_id"`
Token string `json:"-" binding:"required" yaml:"token"`
Timeout time.Duration `json:"-" yaml:"-"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}

type telegramOptionConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion mysql/mysql_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type MysqlConfig struct {
MaxOpenConn int `json:"max_open_conn" binding:"required" yaml:"max-open-conn"`
MaxIdleConn int `json:"max_idle_conn" binding:"required" yaml:"max-idle-conn"`
MaxLifeTimeMinutesConn int `json:"max_life_time_minutes_conn" binding:"required" yaml:"max-life-time-minutes-conn"`
Timeout time.Duration `json:"-" yaml:"-"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}

type mysqlOptionConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion postgres/postgres_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type PostgresConfig struct {
SSLMode string `json:"ssl_mode" binding:"required" yaml:"ssl-mode"`
MaxOpenConn int `json:"max_open_conn" binding:"required" yaml:"max-open-conn"`
MaxIdleConn int `json:"max_idle_conn" binding:"required" yaml:"max-idle-conn"`
Timeout time.Duration `json:"-" yaml:"-"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}

type postgresOptionConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion rabbitmqx/rabbitmq_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type RabbitMqConfig struct {
Port int `json:"port" binding:"required" yaml:"port"`
Message RabbitMqMessageConfig `json:"message,omitempty" yaml:"message"`
Clusters clusters `json:"clusters,omitempty" yaml:"clusters"`
Timeout time.Duration `json:"-" yaml:"-"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}

type RabbitMqExchangeConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion redisx/redis_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type RedisConfig struct {
UrlConn string `json:"url_conn" binding:"required" yaml:"url_conn"`
Password string `json:"-" binding:"required" yaml:"password"`
Database string `json:"database" binding:"required" yaml:"database"`
Timeout time.Duration `json:"-" yaml:"-"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}

type redisOptionConfig struct {
Expand Down

0 comments on commit f0b4812

Please sign in to comment.