Documentation ¶
Index ¶
- Constants
- func CreateHooksJWT(secret []byte) (string, error)
- func GenSymmetricKey(bits int) (k []byte, err error)
- func MergeJsonRightIntoLeft(left, right []byte) []byte
- func NewApiTransport(tripper http.RoundTripper, api *Api, hooksClient *hooks.Client, ...) http.RoundTripper
- func NewApiTransportFactory(api *Api, hooksClient *hooks.Client, enableDebugMode bool) func(tripper http.RoundTripper) http.RoundTripper
- func NewRequestFromWunderGraphClientRequest(ctx context.Context, body []byte) (*http.Request, error)
- type Api
- type ApiTransport
- type Builder
- type BuilderConfig
- type Claims
- type EndpointUnavailableHandler
- type GraphQLHandler
- type GraphQLPlaygroundHandler
- type InternalApiHandler
- type InternalBuilder
- type Listener
- type Logging
- type MutationHandler
- type OpenIDConnectConfiguration
- type OperationMetaData
- type Options
- type QueryHandler
- type QueryResolver
- type SubscriptionHandler
Constants ¶
View Source
const ( WG_PREFIX = "wg_" WG_LIVE = WG_PREFIX + "live" WG_VARIABLES = WG_PREFIX + "variables" )
Variables ¶
This section is empty.
Functions ¶
func CreateHooksJWT ¶
func GenSymmetricKey ¶
func MergeJsonRightIntoLeft ¶
MergeJsonRightIntoLeft merges the right JSON into the left JSON while overriding the left side
func NewApiTransport ¶
func NewApiTransport(tripper http.RoundTripper, api *Api, hooksClient *hooks.Client, enableDebugMode bool) http.RoundTripper
func NewApiTransportFactory ¶ added in v0.93.2
func NewApiTransportFactory(api *Api, hooksClient *hooks.Client, enableDebugMode bool) func(tripper http.RoundTripper) http.RoundTripper
Types ¶
type Api ¶ added in v0.110.0
type Api struct { PrimaryHost string Hosts []string PathPrefix string EngineConfiguration *wgpb.EngineConfiguration EnableSingleFlight bool EnableGraphqlEndpoint bool Operations []*wgpb.Operation CorsConfiguration *wgpb.CorsConfiguration DeploymentId string CacheConfig *wgpb.ApiCacheConfig // TODO: extract from proto ApiConfigHash string AuthenticationConfig *wgpb.ApiAuthenticationConfig S3UploadConfiguration []*wgpb.S3UploadConfiguration Webhooks []*wgpb.WebhookConfiguration Options *Options }
func (*Api) HasCookieAuthEnabled ¶ added in v0.110.0
type ApiTransport ¶
type ApiTransport struct {
// contains filtered or unexported fields
}
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(pool *pool.Pool, log abstractlogger.Logger, loader *engineconfigloader.EngineConfigLoader, hooksClient *hooks.Client, config BuilderConfig, ) *Builder
type BuilderConfig ¶
type EndpointUnavailableHandler ¶
type EndpointUnavailableHandler struct {
}func (*EndpointUnavailableHandler) ServeHTTP ¶
func (m *EndpointUnavailableHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request)
type GraphQLHandler ¶
type GraphQLHandler struct {
// contains filtered or unexported fields
}
func (*GraphQLHandler) ServeHTTP ¶
func (h *GraphQLHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GraphQLPlaygroundHandler ¶
type GraphQLPlaygroundHandler struct {
// contains filtered or unexported fields
}
func (*GraphQLPlaygroundHandler) ServeHTTP ¶
func (h *GraphQLPlaygroundHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type InternalApiHandler ¶
type InternalApiHandler struct {
// contains filtered or unexported fields
}
func (*InternalApiHandler) ServeHTTP ¶
func (h *InternalApiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type InternalBuilder ¶
type InternalBuilder struct {
// contains filtered or unexported fields
}
func NewInternalBuilder ¶
func NewInternalBuilder(pool *pool.Pool, log abstractlogger.Logger, loader *engineconfigloader.EngineConfigLoader) *InternalBuilder
func (*InternalBuilder) BuildAndMountInternalApiHandler ¶
type MutationHandler ¶
type MutationHandler struct {
// contains filtered or unexported fields
}
func (*MutationHandler) ServeHTTP ¶
func (h *MutationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type OpenIDConnectConfiguration ¶
type OpenIDConnectConfiguration struct { Issuer string `json:"issuer"` AuthorizationEndpoint string `json:"authorization_endpoint"` TokenEndpoint string `json:"token_endpoint"` UserinfoEndpoint string `json:"userinfo_endpoint"` JwksUri string `json:"jwks_uri"` EndSessionEndpoint string `json:"end_session_endpoint"` }
type OperationMetaData ¶
type OperationMetaData struct { OperationName string OperationType wgpb.OperationType }
func (*OperationMetaData) GetOperationTypeString ¶
func (o *OperationMetaData) GetOperationTypeString() string
type QueryHandler ¶
type QueryHandler struct {
// contains filtered or unexported fields
}
func (*QueryHandler) ServeHTTP ¶
func (h *QueryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type QueryResolver ¶
type SubscriptionHandler ¶
type SubscriptionHandler struct {
// contains filtered or unexported fields
}
func (*SubscriptionHandler) ServeHTTP ¶
func (h *SubscriptionHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.