config

package
v0.0.0-...-6e1f017 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period:      10 * time.Second,
	Server:      "http://127.0.0.1:8080",
	NodeMetric:  true,
	CacheMetric: false,
	AllCache:    true,
	SQLQuery:    false,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Period      time.Duration `config:"period"`
	Server      string        `config:"server"`
	NodeMetric  bool          `config:"node_metric"`
	CacheMetric bool          `config:"cache_metric"`
	AllCache    bool          `config:"all_cache"`
	CacheList   []string      `config:"cache_list"`
	SQLQuery    bool          `config:"sql_query"`
	Queries     []Query       `config:"queries"`
}

func (*Config) ToString

func (c *Config) ToString() string

type Query

type Query struct {
	CacheName string `yaml:"cache_name"`
	Sql       string `yaml:"sql"`
	Size      string `yaml:"size"`
	Type      string `yaml:"type"`
}

Jump to

Keyboard shortcuts

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