config

package
v0.0.0-...-9439de2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: GPL-3.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

func NewExtractor

func NewExtractor(args []string) *Config

func NewExtractorFromQuery

func NewExtractorFromQuery(q Query) (*Config, error)

func NewGenerator

func NewGenerator(args []string) *Config

func NewGeneratorFromQuery

func NewGeneratorFromQuery(q Query) (*Config, error)

func NewInjector

func NewInjector(args []string) *Config

func NewInjectorFromQuery

func NewInjectorFromQuery(q Query) (*Config, error)

func NewServer

func NewServer(args []string, hf http.HandlerFunc) *Config

func (*Config) Clear

func (c *Config) Clear()

func (*Config) Execute

func (c *Config) Execute() error

func (*Config) Files

func (c *Config) Files() []string

func (*Config) Parse

func (c *Config) Parse() error

func (*Config) Validate

func (c *Config) Validate() error

type Query

type Query interface {
	StringVal(string) string
	ByteVal(string) (io.ReadCloser, string, error)
}

Jump to

Keyboard shortcuts

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