Documentation ¶
Index ¶
Constants ¶
View Source
const (
PersistedOperationNotFoundErrorCode = "PersistedQueryNotFound"
)
Variables ¶
View Source
var ( ErrMissingSignatureHeader = errors.New("signature header not found in CDN response") ErrInvalidSignature = errors.New("invalid config signature, potential tampering detected") )
Functions ¶
This section is empty.
Types ¶
type PersistentOperationClient ¶
type PersistentOperationClient struct {
// contains filtered or unexported fields
}
func NewPersistentOperationClient ¶
func NewPersistentOperationClient(endpoint string, token string, opts PersistentOperationsOptions) (*PersistentOperationClient, error)
NewPersistentOperationClient creates a new CDN client. URL is the URL of the CDN. Token is the token used to authenticate with the CDN, the same as the GRAPH_API_TOKEN
func (*PersistentOperationClient) PersistedOperation ¶
type RouterConfigClient ¶
type RouterConfigClient struct {
// contains filtered or unexported fields
}
func NewRouterConfigClient ¶
func NewRouterConfigClient(endpoint string, token string, opts RouterConfigOptions) (*RouterConfigClient, error)
NewRouterConfigClient creates a new CDN client. URL is the URL of the CDN. Token is the token used to authenticate with the CDN, the same as the GRAPH_API_TOKEN
func (*RouterConfigClient) RouterConfig ¶
func (cdn *RouterConfigClient) RouterConfig(ctx context.Context, version string) (*nodev1.RouterConfig, error)
type RouterConfigOptions ¶
Click to show internal directories.
Click to hide internal directories.