wrap

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContextHook

func WithContextHook(cl gql.Client, hook func(context.Context) (context.Context, error)) gql.Client

WithContextHook wraps a given gql.Client, returning a gql.Client that will pass the context through given context hook before each query/mutation. A typical use would be to set certain headers using gql.WithHeaders.

Types

This section is empty.

Jump to

Keyboard shortcuts

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