func NewClient(box models.StashBox, txnManager models.TransactionManager) *Client {
	authHeader := func(req *http.Request) {
		req.Header.Set("ApiKey", box.APIKey)
	}

	client := &graphql.Client{
		Client: client.NewClient(http.DefaultClient, box.Endpoint, authHeader),
	}

	return &Client{
		client:     client,
		txnManager: txnManager,
		box:        box,
	}
}
// NewClient returns a new instance of a stash-box client.
NewClient returns a new instance of a stash-box client.
// NewClient returns a new instance of a stash - box client .
func NewClient(box models.StashBox, txnManager models.TransactionManager) *Client {
	authHeader := func(req *http.Request) {
		req.Header.Set("ApiKey", box.APIKey)
	}
	client := &graphql.Client{
		Client: client.NewClient(http.DefaultClient, box.Endpoint, authHeader),
	}
	return &Client{
		client:     client,
		txnManager: txnManager,
		box:        box,
	}
}
func NewClient ( box models . StashBox , txnManager models . TransactionManager ) * Client { authHeader := func ( req * http . Request ) { req . Header . Set ( " " , box . APIKey ) } client := & graphql . Client { Client : client . NewClient ( http . DefaultClient , box . Endpoint , authHeader ) , } return & Client { client : client , txnManager : txnManager , box : box , } }
NewClient returns a new instance of a stash-box client.
NewClient returns a new instance of a stash - box client .