potato/config/server.go

16 lines
640 B
Go
Raw Permalink Normal View History

2021-03-23 00:55:26 +08:00
/*
* @Date: 2021-03-22 09:54:07
* @LastEditors: viletyy
2021-07-09 14:26:02 +08:00
* @LastEditTime: 2021-07-09 14:22:47
2021-03-23 00:55:26 +08:00
* @FilePath: /potato/config/server.go
*/
package config
type Server struct {
2021-07-09 14:26:02 +08:00
HttpPort int64 `mapstructure:"http_port" json:"http_port" yaml:"http_port"`
GrpcPort int64 `mapstructure:"grpc_port" json:"grpc_port" yaml:"grpc_port"`
2021-06-14 21:15:55 +08:00
ReadTimeout int64 `mapstructure:"read_timeout" json:"read_timeout" yaml:"read_timeout"`
WriteTimeout int64 `mapstructure:"write_timeout" json:"write_timeout" yaml:"write_timeout"`
TracerHostPort string `mapstructure:"tracer_host_port" json:"tracer_host_port" yaml:"tracer_host_port"`
2021-03-23 00:55:26 +08:00
}