Documentation
¶
Overview ¶
generally copy paste from nautilus/graphql
Index ¶
- type MultiOpQueryer
- func (q *MultiOpQueryer) Query(inputs []*requests.Request) ([]map[string]interface{}, error)
- func (q *MultiOpQueryer) URL() string
- func (q *MultiOpQueryer) WithContext(ctx context.Context) *MultiOpQueryer
- func (q *MultiOpQueryer) WithHTTPClient(client *http.Client) *MultiOpQueryer
- func (q *MultiOpQueryer) WithMiddlewares(mwares []RequestMiddleware) *MultiOpQueryer
- type Queryer
- type RequestMiddleware
- type Response
- type Responses
- type UploadMap
- type UploadMapItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiOpQueryer ¶
type MultiOpQueryer struct {
// contains filtered or unexported fields
}
MultiOpQueryer is a queryer that will batch subsequent query on some interval into a single network request to a single target
func NewMultiOpQueryer ¶
func NewMultiOpQueryer(url string, maxBatchSize int) *MultiOpQueryer
NewMultiOpQueryer returns a MultiOpQueryer with the provided parameters
func (*MultiOpQueryer) Query ¶
func (q *MultiOpQueryer) Query(inputs []*requests.Request) ([]map[string]interface{}, error)
func (*MultiOpQueryer) URL ¶
func (q *MultiOpQueryer) URL() string
func (*MultiOpQueryer) WithContext ¶
func (q *MultiOpQueryer) WithContext(ctx context.Context) *MultiOpQueryer
WithContext sets ctx which will be passed to following http.Request
func (*MultiOpQueryer) WithHTTPClient ¶
func (q *MultiOpQueryer) WithHTTPClient(client *http.Client) *MultiOpQueryer
WithHTTPClient lets the user configure the client to use when making network requests
func (*MultiOpQueryer) WithMiddlewares ¶
func (q *MultiOpQueryer) WithMiddlewares(mwares []RequestMiddleware) *MultiOpQueryer
WithMiddlewares lets the user assign middlewares to the queryer
type RequestMiddleware ¶
RequestMiddleware are functions can be passed to Queryer to affect its internal behavior
type UploadMap ¶
type UploadMap []*UploadMapItem
type UploadMapItem ¶
type UploadMapItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.