allow

package
v0.15.56 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryName

func QueryName(b string) string

Types

type Config

type Config struct {
	Log *log.Logger
}

type Frag

type Frag struct {
	Name  string
	Value string
}

type Item

type Item struct {
	Name    string
	Comment string

	Query string
	Vars  string
	// contains filtered or unexported fields
}

type List

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

func New

func New(filename string, conf Config) (*List, error)

func (*List) FragmentFetcher

func (al *List) FragmentFetcher() func(name string) (string, error)

func (*List) GetQuery

func (al *List) GetQuery(name string) (Item, error)

func (*List) Load

func (al *List) Load() ([]Item, error)

func (*List) Set

func (al *List) Set(vars []byte, query string) error

Jump to

Keyboard shortcuts

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