schemas

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCHEMA_SUFFIX = ".json"
)

Variables

View Source
var Schemas embed.FS

Functions

func GetSchema

func GetSchema(path string) ([]byte, error)

GetSchema returns a schema from the schemas directory

func HasSchema

func HasSchema(path string) bool

HasSchema checks if a schema exists in the schemas directory

func ListSchemas

func ListSchemas() ([]string, error)

ListSchemas returns a list of schema names

func PrefixSchema

func PrefixSchema(path string) string

func ToMap

func ToMap() (fileMap map[string]fs.DirEntry, err error)

ToMap returns a map of schema names to schemas

Types

This section is empty.

Jump to

Keyboard shortcuts

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