archaius

package
v0.0.0-...-a13a725 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

package archaius holds all configuration information, named after the netflixoss project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsJson

func AsJson() []byte

return current config as json

func FromJson

func FromJson(confJSON []byte)

Types

type Configuration

type Configuration struct {
	// Arch names the architecture pattern being simulated
	Arch string `json:"arch,omitempty"`

	// GraphmlFile is set to a filename to turn on GraphML logging
	GraphmlFile string `json:"graphmlfile,omitempty"`

	// GraphjsonFile is set to a filename to turn on GraphML logging
	GraphjsonFile string `json:"graphjsonfile,omitempty"`

	// RunDuration is the time in seconds to let the microservices chat
	RunDuration time.Duration `json:"runduration,omitempty"`

	// Dunbar is a population scale factor
	Dunbar int `json:"dunbar,omitempty"`

	// Population is the number of microservices in a network
	Population int `json:"population,omitempty"`

	// Msglog if true, log each message received on the console
	Msglog bool `json:"msglog",omitempty"`
}
var Conf Configuration

func (Configuration) String

func (Configuration) String() string

return formatted as string

Jump to

Keyboard shortcuts

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