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 WithDebugMode(enable bool) 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 WithPrettyLogging(enable bool) Option
- func WithStaticWunderNodeConfig(config WunderNodeConfig) 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) 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 WithDebugMode ¶
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 WithPrettyLogging ¶ added in v0.117.0
func WithStaticWunderNodeConfig ¶
func WithStaticWunderNodeConfig(config WunderNodeConfig) Option
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)
Click to show internal directories.
Click to hide internal directories.