config

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SerializerBinary = "binary"
	SerializerBSON   = "bson"
	SerializerGQL    = "graphql"
	SerializerJSON   = "json"
	SerializerSQL    = "sql"
	SerializerText   = "text"
	SerializerYaml   = "yaml"
	SerializerYamlV3 = "yaml.v3"
)
View Source
const (
	SupportUndefined    = "undefined"
	SupportIgnoreCase   = "ignore-case"
	SupportEntInterface = "ent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args Options

type Options

type Options struct {
	TransformStrategy string     `yaml:"transform" env-default:"noop"`
	Serializers       stringList `yaml:"serializers"`
	SupportedFeatures stringList `yaml:"support"`
}

func LoadFrom

func LoadFrom(file string) *Options

func LoadWith

func LoadWith(args *Args) *Options

func (*Options) Clone

func (o *Options) Clone() *Options

Jump to

Keyboard shortcuts

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