config

package
v0.0.0-...-edfa092 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period:  10 * time.Second,
	Host:    "localhost",
	Port:    6379,
	Network: "tcp",
	MaxConn: 10,
	Auth: AuthConfig{
		Required:     false,
		RequiredPass: "",
	},
	Stats: StatsConfig{
		Server:       true,
		Clients:      true,
		Memory:       true,
		Persistence:  true,
		Stats:        true,
		Replication:  true,
		Cpu:          true,
		Commandstats: true,
		Cluster:      true,
		Keyspace:     true,
	},
}

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Required     bool   `config:"required"`
	RequiredPass string `config:"requiredpass"`
}

type Config

type Config struct {
	Period  time.Duration
	Host    string
	Port    int
	Network string
	MaxConn int
	Auth    AuthConfig
	Stats   StatsConfig
}

type StatsConfig

type StatsConfig struct {
	Server       bool `config:"server"`
	Clients      bool `config:"clients"`
	Memory       bool `config:"memory"`
	Persistence  bool `config:"persistence"`
	Stats        bool `config:"stats"`
	Replication  bool `config:"replication"`
	Cpu          bool `config:"cpu"`
	Commandstats bool `config:"commandstats"`
	Cluster      bool `config:"cluster"`
	Keyspace     bool `config:"keyspace"`
}

Jump to

Keyboard shortcuts

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