meta

package
v0.0.0-...-b52e348 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 9 Imported by: 26

Documentation

Index

Constants

View Source
const (
	// DefaultApi is the default megam gateway if one is not provided.
	DefaultApi = "http://localhost:9000/v2/"

	DefaultMasterKey = "fakemasterkey"

	// DefaultNSQ is the default nsqd if its not provided.
	DefaultNSQd = "localhost:4161"

	// DefaultScylla is the default scylla if one is not provided.
	DefaultScylla = "localhost"

	// DefaultScyllaKeyspace is the default Scyllakeyspace if one is not provided.
	DefaultScyllaKeyspace = "vertice"

	DefaultScyllaUsername = "vertadmin"
	DefaultScyllaPassword = "vertadmin"

	//default user
	DefaultUser = "megam"

	MEGAM_HOME = "MEGAM_HOME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Home       string   `toml:"home"`
	Dir        string   `toml:"dir"`
	NSQd       []string `toml:"nsqd"`
	Api        string   `toml:"api"`
	MasterKey  string   `toml:"master_key"`
	MasterUser string   `toml:"master_user"`
	User       string   `toml:"user"`
}

Config represents the meta configuration.

var MC *Config

func NewConfig

func NewConfig() *Config

func (*Config) Client

func (c *Config) Client(email, org string) *api.ApiArgs

func (*Config) MkGlobal

func (c *Config) MkGlobal()

func (Config) String

func (c Config) String() string

func (*Config) ToMap

func (c *Config) ToMap() map[string]string

Jump to

Keyboard shortcuts

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