app

package
v0.0.0-...-276f339 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

README

go app facade

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMaster

func IsMaster() bool

func RunMaster

func RunMaster(_app string)

func TestConf

func TestConf()

Types

type AConfig

type AConfig struct {
	// contains filtered or unexported fields
}

func NewAConfig

func NewAConfig(_name string) *AConfig

func (*AConfig) GetAry

func (this *AConfig) GetAry(_path string) []int

func (*AConfig) GetBool

func (this *AConfig) GetBool(_path string, _def bool) bool

func (*AConfig) GetInt

func (this *AConfig) GetInt(_path string, _def int) int

func (*AConfig) GetList

func (this *AConfig) GetList(_path string) (res []*ANode)

func (*AConfig) GetObj

func (this *AConfig) GetObj(_path string) *ANode

func (*AConfig) GetStr

func (this *AConfig) GetStr(_path string, _def string) string

func (*AConfig) LoadDef

func (this *AConfig) LoadDef(_do_load func())

func (*AConfig) LoadYaml

func (this *AConfig) LoadYaml(_path string, _do_load func())

type AFacade

type AFacade struct {
	// contains filtered or unexported fields
}

func NewAFacade

func NewAFacade(_conf *AConfig) *AFacade

func (*AFacade) IsActive

func (this *AFacade) IsActive() bool

func (*AFacade) Setup

func (this *AFacade) Setup(_on_tip func(), _on_start func(), _on_stop func())

func (*AFacade) Start

func (this *AFacade) Start()

func (*AFacade) Stop

func (this *AFacade) Stop()

type ANode

type ANode struct {
	// contains filtered or unexported fields
}

func (*ANode) GetAry

func (this *ANode) GetAry(_path string) (res []int)

func (*ANode) GetBool

func (this *ANode) GetBool(_path string, _def bool) bool

func (*ANode) GetInt

func (this *ANode) GetInt(_path string, _def int) int

func (*ANode) GetList

func (this *ANode) GetList(_path string) []interface{}

func (*ANode) GetObj

func (n *ANode) GetObj(_path string) *ANode

func (*ANode) GetStr

func (this *ANode) GetStr(_path string, _def string) string

type MyCfg

type MyCfg struct {
	AConfig
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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