Documentation
¶
Index ¶
- Constants
- type BasicAuthConfig
- type Cache
- type Config
- type ConfigEndpointConfig
- type ContextInspect
- type DebugEndpointConfig
- type Dependencies
- type EmbeddedConfig
- type EmbeddedSvc
- type EndpointsConfig
- type FuncTransformer
- type GetConfig
- type GlobalArgs
- type GraphiqlExplorerEndpointConfig
- type GraphqlEndpointConfig
- type HostConfig
- type HttpJsonEndpoint
- type InternalConfig
- type InternalLogConfig
- type InternalLogData
- type InternalLogTemplates
- type LogConfig
- type PrometheusEndpointConfig
- type ReqCtx
- type RequestHandler
- type ResolveByIdConfig
- type ResolveFunc
- type Route
- type ServeFunc
- type ServiceAccountAssignment
- type Transformer
- type Version
Constants ¶
View Source
const ( Method = "Method" Mode = "Mode" Stage = "Stage" Ctx = "Ctx" GCliReq = "GCliReq" GBusRsp = "GBusRsp" GCliRsps = "GCliRsps" ForTypeNode = "ForTypeNode" GBusReq = "GBusReq" GSvcRsp = "GSvcRsp" SvcFilter = "SvcFilter" GRspSelect = "GRspSelect" EndpointNode = "EndpointNode" Svcs = "Svcs" Svc = "Svc" Errs = "Errs" GEntity = "GEntity" GEntities = "GEntities" SvcId = "SvcId" SvcIds = "SvcIds" ClientAccount = "ClientAccount" DoCliReqValidation = "DoCliReqValidation" DoCliReqProcessing = "DoCliReqProcessing" )
View Source
const ( CliReq = "client request" SvcReq = "service request" SvcRsp = "service response" CliRsp = "client response" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthConfig ¶
type Config ¶
type Config struct { DiscoverySvc mql.Service `yaml:"discoverySvc,omitempty"` Endpoints EndpointsConfig `yaml:"endpoints,omitempty"` Host HostConfig `yaml:"host,omitempty"` Log LogConfig `yaml:"log,omitempty"` Embedded EmbeddedConfig `yaml:"virtual,omitempty"` Internal InternalConfig `yaml:"internal,omitempty"` ServiceAccounts []ServiceAccountAssignment `yaml:"serviceAccounts,omitempty"` }
type ConfigEndpointConfig ¶
type ConfigEndpointConfig struct {
On bool `yaml:"on,omitempty"`
}
type ContextInspect ¶
type DebugEndpointConfig ¶
type DebugEndpointConfig struct {
On bool `yaml:"on,omitempty"`
}
type Dependencies ¶
type EmbeddedConfig ¶
type EmbeddedConfig struct {
Services []EmbeddedSvc
}
type EmbeddedSvc ¶
type EndpointsConfig ¶
type EndpointsConfig struct { Config ConfigEndpointConfig `yaml:"config,omitempty"` Prometheus PrometheusEndpointConfig `yaml:"prometheus,omitempty"` Debug DebugEndpointConfig `yaml:"debug,omitempty"` Graphql GraphqlEndpointConfig `yaml:"graphql,omitempty"` GraphiqlExplorer GraphiqlExplorerEndpointConfig `yaml:"graphiqlExplorer,omitempty"` HttpJson HttpJsonEndpoint `yaml:"httpJson,omitempty"` }
type FuncTransformer ¶
func (FuncTransformer) Name ¶
func (t FuncTransformer) Name() string
func (FuncTransformer) Transform ¶
func (t FuncTransformer) Transform(ctx ReqCtx) ReqCtx
type GetConfig ¶
type GetConfig struct { MaxResults int ResolveById ResolveByIdConfig }
type GlobalArgs ¶
type GraphqlEndpointConfig ¶
type GraphqlEndpointConfig struct {
On bool `yaml:"on,omitempty"`
}
type HostConfig ¶
type HostConfig struct { AllowedOrigins []string `yaml:"allowedOrigins,omitempty"` ReadTimeoutSeconds int `yaml:"readTimeoutSeconds,omitempty"` WriteTimeoutSeconds int `yaml:"writeTimeoutSeconds,omitempty"` BasicAuth BasicAuthConfig `yaml:"basicAuth,omitempty"` }
type HttpJsonEndpoint ¶
type HttpJsonEndpoint struct {
On bool `yaml:"on,omitempty"`
}
type InternalConfig ¶
type InternalConfig struct {
Get GetConfig
}
type InternalLogData ¶
type LogConfig ¶
type LogConfig struct { Http bool Internal InternalLogConfig }
type PrometheusEndpointConfig ¶
type PrometheusEndpointConfig struct {
On bool `yaml:"on,omitempty"`
}
type ReqCtx ¶
type ReqCtx struct { Id string Stage string Method string Mode string Ctx context.Context GCliReq generic.Generic GBusRsp generic.Generic GCliRsps []generic.Generic ForTypeNode *graph.TypeNode GBusReq generic.Generic GSvcRsp generic.Generic SvcFilter *mql.ServiceFilter GRspSelect generic.Generic EndpointNode *graph.EndpointNode Svcs []mql.Service Svc *mql.Service Errs []mql.Error GEntity generic.Generic GEntities generic.Slice SvcId *mql.ServiceId SvcIds []mql.ServiceId BusReqCtxs []ReqCtx DoCliReqValidation bool DoCliReqProcessing bool DoSetClientAccount bool }
type RequestHandler ¶
type ResolveByIdConfig ¶
type ResolveByIdConfig struct {
Concurrency int
}
type ResolveFunc ¶
type ServiceAccountAssignment ¶
type ServiceAccountAssignment struct { ServiceId mql.ServiceId ServiceAccount mql.ServiceAccount }
type Transformer ¶
Click to show internal directories.
Click to hide internal directories.