mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 21:33:06 +01:00
14 lines
268 B
Go
14 lines
268 B
Go
package config
|
|
|
|
type Server struct {
|
|
Port int `mapstructure:"PORT" yaml:"port" default:"10000"`
|
|
BasePath string `mapstructure:"BASE_PATH" yaml:"basePath" default:"/"`
|
|
}
|
|
|
|
func NewServerConfig() Server {
|
|
return Server{
|
|
Port: 10000,
|
|
BasePath: "/",
|
|
}
|
|
}
|