Files
platiparser/plati/client.go
2023-12-21 22:56:24 +03:00

26 lines
387 B
Go

package plati
import (
"math/rand"
"net/http"
)
type Client struct {
httpClis []*http.Client
token string
sellerID int
}
func New(clients []*http.Client) *Client {
return &Client{
httpClis: clients,
token: "7C731D89FED84B479B89F24F81BB8AF2",
sellerID: 1209592,
}
}
func (c *Client) httpCli() *http.Client {
i := rand.Intn(len(c.httpClis))
return c.httpClis[i]
}