add debug flag to rt as well

develop
parent a1849a8bb6
commit 6af2852f27
  1. 5
      rt/rt.go

@ -198,15 +198,16 @@ type Client struct {
user string
password string
insecureSkipVerify bool
debug bool
}
// NewClient prepares a Client for usage.
func NewClient(rtURL string, user, password string, insecureSkipVerify bool) (*Client, error) {
func NewClient(rtURL string, user, password string, insecureSkipVerify, debug bool) (*Client, error) {
x, err := url.Parse(rtURL)
if err != nil {
return nil, err
}
return &Client{url: x, user: user, password: password, insecureSkipVerify: insecureSkipVerify}, nil
return &Client{url: x, user: user, password: password, insecureSkipVerify: insecureSkipVerify, debug: debug}, nil
}
func (c *Client) Ticket(id int) (*Ticket, error) {

Loading…
Cancel
Save