qps

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QLIK_XRF_KEY string = "ponmlkjihgfedcba"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg rac.Config) (*Client, *util.Result)

func (*Client) Do

func (c *Client) Do(method string, endpoint string, params map[string]string, body interface{}) ([]byte, *util.Result)

func (*Client) DoRaw

func (c *Client) DoRaw(method string, endpoint string, extraHeaders map[string]string, params map[string]string, body io.Reader) ([]byte, *util.Result)

func (*Client) Get

func (c *Client) Get(endpoint string, params map[string]string) ([]byte, *util.Result)

func (*Client) GetObject

func (c *Client) GetObject(endpoint string, o interface{}) *util.Result

func (*Client) GetRaw

func (c *Client) GetRaw(endpoint string, extraHeaders map[string]string, params map[string]string) ([]byte, *util.Result)

func (*Client) GetWebTicket

func (qpsClient *Client) GetWebTicket(qpsUser *User) *util.Result

func (*Client) Logger

func (c *Client) Logger() *zerolog.Logger

func (*Client) Post

func (c *Client) Post(endpoint string, params map[string]string, body interface{}) ([]byte, *util.Result)

func (*Client) PostRaw

func (c *Client) PostRaw(endpoint string, extraHeaders map[string]string, params map[string]string, body io.Reader) ([]byte, *util.Result)

func (*Client) SetLogger

func (c *Client) SetLogger(l *zerolog.Logger)

type User

type User struct {
	UserId  string  `json:"UserId" yaml:"UserId"`
	UserDir string  `json:"UserDirectory" yaml:"UserDirectory"`
	Ticket  *string `json:"Ticket" yaml:"Ticket"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL