Initialize Tinder API Wrapper with server configuration and Docker setup
This commit is contained in:
commit
e99b56e434
17 changed files with 1459 additions and 0 deletions
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",
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue