commands

package
v0.180.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 50 Imported by: 1

Documentation

Index

Constants

View Source
const LoadOperationsCmdName = "loadoperations"
View Source
const UpCmdName = "up"

Variables

View Source
var (
	BuildInfo       node.BuildInfo
	GitHubAuthDemo  node.GitHubAuthDemo
	TelemetryClient telemetry.Client
	DotEnvFile      string
)

Functions

func Execute

func Execute(buildInfo node.BuildInfo, githubAuthDemo node.GitHubAuthDemo)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func FlushTelemetry added in v0.120.0

func FlushTelemetry()

func NewWunderGraphNode added in v0.112.0

func NewWunderGraphNode(ctx context.Context) (*node.Node, string, error)

func StartWunderGraphNode added in v0.112.0

func StartWunderGraphNode(n *node.Node, opts ...Option) error

Types

type BuildTimeConfig

type BuildTimeConfig struct {
	DefaultApiEndpoint string
}

type DatabaseIntrospectionResult

type DatabaseIntrospectionResult struct {
	PrismaSchema  string          `json:"prisma_schema"`
	GraphQLSchema string          `json:"graphql_schema"`
	Dmmf          json.RawMessage `json:"dmmf"`
}

type Option added in v0.114.0

type Option func(options *options)

func WithHooksServerHealthCheck added in v0.114.0

func WithHooksServerHealthCheck() Option

func WithIdleHandler added in v0.114.0

func WithIdleHandler(idleHandler func()) Option

func WithNATSDefaultServerURL added in v0.166.0

func WithNATSDefaultServerURL(serverURL string) Option

func WithRequestResponseLogging added in v0.174.0

func WithRequestResponseLogging(enable bool) Option

WithRequestResponseLogging enables logging all HTTP requests and responses to the stderr

func WithServerConfigLoadHandler added in v0.170.0

func WithServerConfigLoadHandler(handler func(*node.WunderNodeConfig)) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL