app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 17 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 {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(cfgjson string) (*App, error)

func (*App) Run

func (a *App) Run()

func (*App) Stop

func (a *App) Stop()

type AppConfig

type AppConfig struct {
	ServiceCfg []*ServiceConfig `json:"services"`

	SeeLog        string `json:"seelog"`
	LogPath       string `json:"logpath"`
	FrameInternal int    `json:"frameinternal"`
	Flag          byte   `json:"flag"`
	Type          string `json:"type"`
	//NeedBalance   bool     `json:"needbalance"`
	Discovery    []string `json:"discovery"`
	Balance      []string `json:"balance"`
	NeedKeeplive bool     `json:"needkeeplive"`
	//Addr          string   `json"addr"`
	ZoneName string `json:"zonename"`
}

type ServiceConfig

type ServiceConfig struct {
	Type          string `json:"type"`
	UserService   bool   `json:"userservice"`
	NeedBalance   bool   `json:"needbalance"`
	NeedDiscovery bool   `json:"needdiscovery"`
	NeedKeeplive  bool   `json:"needkeeplive"`
	NeedVerify    bool   `json:"needverify"`
	// UserListen    bool   `json:"userlisten"`
	// ServerListen  bool   `json:"serverlisten"`
	Net string `json:"net"`
	IP  string `json"ip"`
}

Jump to

Keyboard shortcuts

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