Initialize Tinder API Wrapper with server configuration and Docker setup
This commit is contained in:
15
cmd/server/config/config.go
Normal file
15
cmd/server/config/config.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package config
|
||||
|
||||
// Config holds the server configuration
|
||||
type Config struct {
|
||||
ListenAddr string
|
||||
TargetAPI string
|
||||
}
|
||||
|
||||
// New creates a new Config with default values
|
||||
func New() *Config {
|
||||
return &Config{
|
||||
ListenAddr: ":8080",
|
||||
TargetAPI: "https://tinder.cloonar.com",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user