schema

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 `yaml:"path"`
	AutoReload struct {
		Enabled  bool          `yaml:"enabled"`
		Interval time.Duration `yaml:"interval"`
	} `yaml:"auto_reload"`
}

func DefaultConfig added in v0.17.0

func DefaultConfig() Config

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