config

package
v0.0.0-...-c3fcc58 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server    Server
	Daemon    Daemon
	Logging   Log
	Processes []Process
}

func Load

func Load(path string) (*Config, error)

type ConnServer

type ConnServer interface {
	Addr() string
	Type() string
}

type Container

type Container struct {
	CPULimit        int
	MemLimit        int
	UserNamespace   string
	NetNamespace    string
	UTSNamespace    string
	PIDNamespace    string
	MountNamespace  string
	IPCNamespace    string
	CgroupNamespace string
}

type Daemon

type Daemon struct {
	User  string
	Group string
	Umask uint
}

type InetServer

type InetServer struct {
	ConnServer
	Host string
	Port int
	User string
	PWD  string
}

func (InetServer) Addr

func (i InetServer) Addr() string

func (InetServer) Type

func (i InetServer) Type() string

type Log

type Log struct {
	STDOUTPath string
	STDERRPath string
}

type Process

type Process struct {
	Name        string
	CMD         []string
	Priority    int
	NumProcs    int
	AutoRestart bool
	InContainer bool
	Container   Container
}

type Server

type Server struct {
	Unix UnixServer
	Inet InetServer
}

type UnixServer

type UnixServer struct {
	ConnServer
	Path  string
	User  string
	PWD   string
	Owner string
	Group string
	Mode  uint
}

func (UnixServer) Addr

func (u UnixServer) Addr() string

func (UnixServer) Type

func (u UnixServer) Type() string

Jump to

Keyboard shortcuts

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