Documentation ¶
Index ¶
- type BuildInfo
- type GitHubAuthDemo
- type HealthCheckReport
- type Node
- func (n *Node) Close() error
- func (n *Node) GetHealthReport(ctx context.Context, hooksClient *hooks.Client) (*HealthCheckReport, bool)
- func (n *Node) HandleGracefulShutdown(gracefulTimeoutInSeconds int)
- func (n *Node) Shutdown(ctx context.Context) error
- func (n *Node) StartBlocking(opts ...Option) error
- type Option
- func WithConfigFileChange(event chan struct{}) Option
- func WithDevMode() Option
- func WithFileSystemConfig(configFilePath string) Option
- func WithForceHttpsRedirects(forceHttpsRedirects bool) Option
- func WithGitHubAuthDemo(authDemo GitHubAuthDemo) Option
- func WithGlobalRateLimit(requests int, perDuration time.Duration) Option
- func WithHooksServerHealthCheck(timeout time.Duration) Option
- func WithIdleTimeout(idleTimeout time.Duration, idleHandler func()) Option
- func WithInsecureCookies() Option
- func WithIntrospection(enable bool) Option
- func WithRequestLogging(enable bool) Option
- func WithServerConfigLoadHandler(callback func(config *WunderNodeConfig)) Option
- func WithServerErrorHandler(callback func(err error)) Option
- func WithStaticWunderNodeConfig(config *WunderNodeConfig) Option
- func WithTraceBatchTimeout(batchTimeout time.Duration) Option
- type Server
- type WunderNodeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubAuthDemo ¶
type HealthCheckReport ¶ added in v0.115.1
type Node ¶
type Node struct { WundergraphDir string // contains filtered or unexported fields }
func (*Node) Close ¶ added in v0.90.24
Close closes the node and all its dependencies. It is doing that without waiting for the node to shutdown properly.
func (*Node) GetHealthReport ¶ added in v0.115.1
func (*Node) HandleGracefulShutdown ¶ added in v0.110.0
func (*Node) StartBlocking ¶
type Option ¶
type Option func(options *options)
func WithConfigFileChange ¶ added in v0.91.0
func WithConfigFileChange(event chan struct{}) Option
func WithDevMode ¶ added in v0.102.0
func WithDevMode() Option
WithDevMode will set cookie secrets to a static, insecure, string This way, you stay logged in during development Should never be used in production
func WithFileSystemConfig ¶
func WithForceHttpsRedirects ¶
func WithGitHubAuthDemo ¶
func WithGitHubAuthDemo(authDemo GitHubAuthDemo) Option
func WithHooksServerHealthCheck ¶ added in v0.114.0
func WithIdleTimeout ¶ added in v0.113.0
WithIdleTimeout makes the Node call the given handler after idleTimeout has elapsed without any requests while the server is running. If there are no requests, the handler will be called after idleTimeout counting from the server start.
func WithInsecureCookies ¶
func WithInsecureCookies() Option
func WithIntrospection ¶
func WithRequestLogging ¶ added in v0.139.0
func WithServerConfigLoadHandler ¶ added in v0.139.0
func WithServerConfigLoadHandler(callback func(config *WunderNodeConfig)) Option
func WithServerErrorHandler ¶ added in v0.139.0
func WithStaticWunderNodeConfig ¶
func WithStaticWunderNodeConfig(config *WunderNodeConfig) Option
func WithTraceBatchTimeout ¶ added in v0.157.0
WithTraceBatchTimeout sets the timeout for the trace batch exporter. It defines how long the exporter will wait for a batch to be filled before sending it. If the timeout is less or equal than 0, the default value of 5 seconds will be used
type WunderNodeConfig ¶ added in v0.110.0
type WunderNodeConfig struct { Server *Server Api *apihandler.Api }
func CreateConfig ¶ added in v0.110.0
func CreateConfig(graphConfig *wgpb.WunderGraphConfiguration) (*WunderNodeConfig, error)