Files
sablier/pkg/config/server.go
Alexis Couvreur fca9c79289 refactor: reorganize code structure (#556)
* refactor: rename providers to Provider

* refactor folders

* fix build cmd

* fix build cmd

* fix build cmd

* fix cmd start
2025-03-10 14:11:40 -04:00

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: "/",
}
}