Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 357 Bytes
package ingress
import (
"fmt"
"net/http"
)
var (
pathTemplate = "%s/internal/v4/syslog_drain_urls?batch_size=%d&next_id=%d"
)
type APIClient struct {
Client *http.Client
Addr string
BatchSize int
}
func (w APIClient) Get(nextID int) (*http.Response, error) {
return w.Client.Get(fmt.Sprintf(pathTemplate, w.Addr, w.BatchSize, nextID))
}
You can’t perform that action at this time.