mapping

package
v0.0.0-...-749b7a4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name       string
	Home       string
	Jar        string
	EntryPoint string `yaml:"entry_point"`
	Command    string
	PidFile    string `yaml:"pid_file"`
}

represents app entries

type ConsoleLog

type ConsoleLog struct {
	Prefix   string
	MaxSize  string `yaml:"max_size"`
	Backup   int
	Preserve int
}

type Dump

type Dump struct {
	Prefix string
}

type ErrorLog

type ErrorLog struct {
	Path string
}

type GCLog

type GCLog struct {
	Prefix   string
	MaxSize  string `yaml:"max_size"`
	Backup   int
	Preserve int
}

type JMX

type JMX struct {
	Port         *int
	SSL          *bool
	Authenticate *bool
}

type Java

type Java struct {
	Home    string
	Version float32
	Server  bool
	Memory  *Memory
	JMX     *JMX
	Prop    map[string]string
	Option  []string
}

represents java entries

type Log

type Log struct {
	ConsoleLog *ConsoleLog `yaml:"console"`
	GCLog      *GCLog      `yaml:"gc"`
	Dump       *Dump
	ErrorLog   *ErrorLog `yaml:"error"`
}

represents log entries

type Memory

type Memory struct {
	HeapMin             string `yaml:"heap_min"`
	HeapMax             string `yaml:"heap_max"`
	PermMin             string `yaml:"perm_min"`
	PermMax             string `yaml:"perm_max"`
	MetaspaceMin        string `yaml:"metaspace_min"`
	MetaspaceMax        string `yaml:"metaspace_max"`
	NewMin              string `yaml:"new_min"`
	NewMax              string `yaml:"new_max"`
	SurvivorRatio       *int   `yaml:"survivor_ratio"`
	TargetSurvivorRatio *int   `yaml:"target_survivor_ratio"`
}

type OS

type OS struct {
	User string
	Env  map[string]string
}

represents os entries

type YAMLConfig

type YAMLConfig struct {
	App          App
	Java         Java
	Log          *Log
	OS           OS
	PreCommands  []string `yaml:"pre"`
	PostCommands []string `yaml:"post"`
}

func LoadConfig

func LoadConfig(configPath string) (result *YAMLConfig, err error)

Jump to

Keyboard shortcuts

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