export

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppID

type AppID = int

type IAppConfig

type IAppConfig interface {
	IConfig

	GetPprofIP() string
	GetPprofPort() int
	GetEndpointIP() string
	GetEndpointPort() int
	GetServiceConfigs() []IServiceConfig
	GetLogDir() string
	GetStartServiceIntervalMillisecond() time.Duration
	GetStopServiceIntervalMillisecond() time.Duration
	GetExitWaitSecond() time.Duration
}

type IConfig

type IConfig interface {
	TidyAndCheck() error
	GetID() int
	SetID(id int)
}

type IService

type IService interface {
	Init(id ServiceID, startedWg *sync.WaitGroup, stoppedWg *sync.WaitGroup, args ...interface{}) error
	Run(ctx actor.Context, pprofAddr string, args ...interface{}) error
	Stop() error
}

type IServiceConfig

type IServiceConfig interface {
	Name() string
	ID() ServiceID
}

type ServiceID

type ServiceID = int

Jump to

Keyboard shortcuts

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