app

package
v0.0.0-...-bac99df Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ActorName = "app"
View Source
const ConfigName = "app"

Variables

This section is empty.

Functions

func NewConfig

func NewConfig() export.IAppConfig

Types

type Config

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

func (Config) GetEndpointIP

func (c Config) GetEndpointIP() string

func (Config) GetEndpointPort

func (c Config) GetEndpointPort() int

func (Config) GetExitWaitSecond

func (c Config) GetExitWaitSecond() time.Duration

func (Config) GetID

func (c Config) GetID() export.AppID

func (Config) GetLogDir

func (c Config) GetLogDir() string

func (Config) GetPprofIP

func (c Config) GetPprofIP() string

func (Config) GetPprofPort

func (c Config) GetPprofPort() int

func (Config) GetServiceConfigs

func (c Config) GetServiceConfigs() []export.IServiceConfig

func (Config) GetStartServiceIntervalMillisecond

func (c Config) GetStartServiceIntervalMillisecond() time.Duration

func (Config) GetStopServiceIntervalMillisecond

func (c Config) GetStopServiceIntervalMillisecond() time.Duration

func (*Config) SetEndpointIP

func (c *Config) SetEndpointIP(endpointIP string)

func (*Config) SetEndpointPort

func (c *Config) SetEndpointPort(endpointPort int)

func (*Config) SetExitWaitSecond

func (c *Config) SetExitWaitSecond(exitWaitSecond time.Duration)

func (*Config) SetID

func (c *Config) SetID(id export.AppID)

func (*Config) SetLogDir

func (c *Config) SetLogDir(logDir string)

func (*Config) SetPprofIP

func (c *Config) SetPprofIP(pprofIP string)

func (*Config) SetPprofPort

func (c *Config) SetPprofPort(pprofPort int)

func (*Config) SetServiceConfigs

func (c *Config) SetServiceConfigs(serviceConfigs []export.IServiceConfig)

func (*Config) SetStartServiceIntervalMillisecond

func (c *Config) SetStartServiceIntervalMillisecond(startServiceIntervalMillisecond time.Duration)

func (*Config) SetStopServiceIntervalMillisecond

func (c *Config) SetStopServiceIntervalMillisecond(stopServiceIntervalMillisecond time.Duration)

func (*Config) TidyAndCheck

func (c *Config) TidyAndCheck() error

type Super

type Super struct {
	mactor.ISuper
	// contains filtered or unexported fields
}

func NewSuper

func NewSuper(cfg export.IAppConfig, logger mlog.ILogger) (s *Super)

func (Super) GetConfig

func (s Super) GetConfig() export.IAppConfig

func (Super) GetID

func (s Super) GetID() export.ServiceID

func (*Super) Run

func (s *Super) Run() (err error)

Jump to

Keyboard shortcuts

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