nidus-sync/stadia/stadia.go

29 lines
473 B
Go
Raw Normal View History

2026-02-14 15:40:12 +00:00
package stadia
import (
"resty.dev/v3"
//"github.com/rs/zerolog/log"
)
type StadiaMaps struct {
APIKey string
client *resty.Client
urlBase string
}
func NewStadiaMaps(api_key string) *StadiaMaps {
//logger := NewLogger(log.Logger)
//r := resty.New().SetLogger(logger).SetDebug(true)
r := resty.New().SetDebug(true)
return &StadiaMaps{
APIKey: api_key,
client: r,
urlBase: "api.stadiamaps.com",
}
}
func (s *StadiaMaps) Close() {
s.client.Close()
}