Documentation ¶
Index ¶
- Variables
- func Critif(format string, v ...interface{})
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func NewGlobalLogger(writers []io.Writer, level LogLevel, ...)
- func NewRpcConsistentHashSelector() client.Selector
- func NewRpcPeerSelector() client.Selector
- func Noticef(format string, v ...interface{})
- func StringCamelCase(s string) string
- func StringLowerCase(s string) string
- func Tracef(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type AppOption
- type Application
- type ApplicationDescInfo
- type CommBootFlag
- type Handler
- type JoyClient
- type JoySelector
- type JoyService
- type LogLevel
- type Scheduler
- type SchedulerOption
- func WithSchedulerBootConfigFileContent(content interface{}) SchedulerOption
- func WithSchedulerBootConfigFileParser(f func(content []byte, out interface{}) error) SchedulerOption
- func WithSchedulerCreateOneAppOption(appDescInfo *ApplicationDescInfo) SchedulerOption
- func WithSchedulerLogFileLevel(level LogLevel) SchedulerOption
- type WebEngine
- type WebEngineContext
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogLevelTrace = log.LogLevelTrace LogLevelDebug = log.LogLevelDebug LogLevelInfo = log.LogLevelInfo LogLevelNotice = log.LogLevelNotice LogLevelWarn = log.LogLevelWarn LogLevelError = log.LogLevelError LogLevelCriti = log.LogLevelCriti LogLevelFatal = log.LogLevelFatal LogLevelPanic = log.LogLevelPanic )
Functions ¶
func NewGlobalLogger ¶
func NewRpcPeerSelector ¶
func StringCamelCase ¶
func StringLowerCase ¶
Types ¶
type AppOption ¶
type AppOption = application.AppOption
func WithAppBootFlag ¶
func WithAppBootFlag(flag interface{}) AppOption
WithAppBootFlag app注入一个启动参数结构体
type Application ¶
type Application = application.Application
type ApplicationDescInfo ¶
type ApplicationDescInfo = application.ApplicationDescInfo
ApplicationDescInfo 调度器创建app依赖的描述信息
func NewApplicationDescInfo ¶
func NewApplicationDescInfo(name string, initFunc func(globalBootFlag *CommBootFlag, globalBootFile interface{}, app *Application) error, options ...AppOption) *ApplicationDescInfo
type JoySelector ¶
type JoyService ¶
type JoyService = joyservice.ServicesManager
func NewRpcService ¶
func NewRpcService(listenAddr, exposeAddr string, etcdServerAddrs []string) (*JoyService, error)
func NewRpcServiceWithKey ¶
func NewRpcServiceWithKey(key string, listenAddr, exposeAddr string, etcdServerAddrs []string) (*JoyService, error)
type Scheduler ¶
type Scheduler = application.Scheduler
func NewScheduler ¶
func NewScheduler(options ...SchedulerOption) *Scheduler
NewScheduler 创建调度器,调度器可以创建多个app和运行app
type SchedulerOption ¶
type SchedulerOption = application.SchedulerOption
func WithSchedulerBootConfigFileContent ¶
func WithSchedulerBootConfigFileContent(content interface{}) SchedulerOption
WithSchedulerBootConfigFileContent 设置启动配置文件的解析结构,指针结构体类型,不设置默认无起服配置,默认以yaml解析
func WithSchedulerBootConfigFileParser ¶
func WithSchedulerBootConfigFileParser(f func(content []byte, out interface{}) error) SchedulerOption
WithSchedulerBootConfigFileParser 设置起服文件解析函数,默认yaml格式
func WithSchedulerCreateOneAppOption ¶
func WithSchedulerCreateOneAppOption(appDescInfo *ApplicationDescInfo) SchedulerOption
WithSchedulerCreateOneAppOption 通过scheduler创建一个app
func WithSchedulerLogFileLevel ¶
func WithSchedulerLogFileLevel(level LogLevel) SchedulerOption
type WebEngine ¶
func NewEngine ¶
func NewEngine(addr string, newContextFun func() WebEngineContext) *WebEngine
type WebEngineContext ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
netcore/kcp
Package kcp - A Fast and Reliable ARQ Protocol
|
Package kcp - A Fast and Reliable ARQ Protocol |
Click to show internal directories.
Click to hide internal directories.