conf

package
v0.0.0-...-a2182bf Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Mappings []Mapping `yaml:"mappings"`
	// contains filtered or unexported fields
}

func (*Configuration) ReadFile

func (c *Configuration) ReadFile() error

func (*Configuration) SetFileURL

func (c *Configuration) SetFileURL(name string)

func (*Configuration) Write

func (c *Configuration) Write(file io.Writer) error

func (*Configuration) WriteFile

func (c *Configuration) WriteFile() error

type Mapping

type Mapping struct {
	Name    string   `yaml:"name"`
	Tables  []string `yaml:"tables"`
	Queries []struct {
		Name  string `yaml:"name"`
		Query string `yaml:"query"`
	} `yaml:"queries"`
}

Jump to

Keyboard shortcuts

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