mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 21:57:06 +02:00
Moved specifc backends into separate packages
This commit is contained in:
parent
dfaf21b234
commit
48c8843f91
17 changed files with 127 additions and 98 deletions
|
@ -32,7 +32,7 @@ type Client struct {
|
|||
token string
|
||||
}
|
||||
|
||||
func New(serverUrl string, token string) Client {
|
||||
func NewClient(serverUrl string, token string) Client {
|
||||
resty := resty.New()
|
||||
resty.SetBaseURL(serverUrl)
|
||||
resty.SetHeader("Accept", "application/json")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue