schema

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path       string `conf:"default:./schema.graphql" yaml:"path"`
	AutoReload struct {
		Enabled  bool          `conf:"default:true" yaml:"enabled"`
		Interval time.Duration `conf:"default:30s" yaml:"interval"`
	} `yaml:"auto_reload"`
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewSchema

func NewSchema(cfg Config, log *slog.Logger) (*Provider, error)

func (*Provider) Get

func (p *Provider) Get() *ast.Schema

func (*Provider) Stop

func (p *Provider) Stop()

Jump to

Keyboard shortcuts

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