config

package
v0.0.0-...-9cdb792 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_FILE = CONFIG_DIR + "/routes.yml"
	CONFIG_DIR  = "web/config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Routes []Route `yaml:"routes"`
}

func NewConfig

func NewConfig() *Config

func (*Config) GetRoutes

func (config *Config) GetRoutes() []Route

type Route

type Route struct {
	Name       string `yaml:"name"`
	Url        string `yaml:"url"`
	Method     string `yaml:"method"`
	HttpMethod string `yaml:"httpMethod"`
}

Jump to

Keyboard shortcuts

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