Documentation
¶
Index ¶
- func Cli(name string, appVersion string, buildTime string, application gira.Application) error
- func StartAsClient(application gira.Application, appId int32, appType string) error
- func StartAsServer(application gira.Application, appId int32, appType string) error
- type ClientApplication
- type Runtime
- func (runtime *Runtime) Application() gira.Application
- func (runtime *Runtime) BroadcastReloadResource(ctx context.Context, name string) (result gira.BroadcastReloadResourceResult, err error)
- func (runtime *Runtime) Context() context.Context
- func (runtime *Runtime) Done() <-chan struct{}
- func (runtime *Runtime) Err() error
- func (runtime *Runtime) Frameworks() []gira.Framework
- func (runtime *Runtime) GetAccountCacheClient() gira.DbClient
- func (runtime *Runtime) GetAccountDbClient() gira.DbClient
- func (runtime *Runtime) GetAdminCacheClient() gira.DbClient
- func (runtime *Runtime) GetAdminDbClient() gira.DbClient
- func (runtime *Runtime) GetAppFullName() string
- func (runtime *Runtime) GetAppId() int32
- func (runtime *Runtime) GetAppName() string
- func (runtime *Runtime) GetAppType() string
- func (runtime *Runtime) GetAppVersion() string
- func (runtime *Runtime) GetBehaviorDbClient() gira.DbClient
- func (runtime *Runtime) GetBuildTime() int64
- func (runtime *Runtime) GetConfig() *gira.Config
- func (runtime *Runtime) GetCron() gira.Cron
- func (runtime *Runtime) GetEnv() string
- func (runtime *Runtime) GetGameCacheClient() gira.DbClient
- func (runtime *Runtime) GetGameDbClient() gira.DbClient
- func (runtime *Runtime) GetGrpcServer() gira.GrpcServer
- func (runtime *Runtime) GetLogDbClient() gira.DbClient
- func (runtime *Runtime) GetLogDir() string
- func (runtime *Runtime) GetPlatformSdk() gira.PlatformSdk
- func (runtime *Runtime) GetRegistry() gira.Registry
- func (runtime *Runtime) GetRegistryClient() gira.RegistryClient
- func (runtime *Runtime) GetResourceDbClient() gira.DbClient
- func (runtime *Runtime) GetResourceLoader() gira.ResourceLoader
- func (runtime *Runtime) GetServiceContainer() gira.ServiceContainer
- func (runtime *Runtime) GetStatDbClient() gira.DbClient
- func (runtime *Runtime) GetUpTime() int64
- func (runtime *Runtime) GetWorkDir() string
- func (runtime *Runtime) GetZone() string
- func (runtime *Runtime) Go(f func() error)
- func (runtime *Runtime) Quit()
- func (runtime *Runtime) Stop() error
- func (runtime *Runtime) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartAsClient ¶
func StartAsClient(application gira.Application, appId int32, appType string) error
func StartAsServer ¶
func StartAsServer(application gira.Application, appId int32, appType string) error
Types ¶
type ClientApplication ¶
type ClientApplication struct { }
func (*ClientApplication) OnConfigLoad ¶
func (s *ClientApplication) OnConfigLoad(c *gira.Config) error
func (*ClientApplication) OnCreate ¶
func (s *ClientApplication) OnCreate() error
func (*ClientApplication) OnStart ¶
func (s *ClientApplication) OnStart() error
func (*ClientApplication) OnStop ¶
func (s *ClientApplication) OnStop() error
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
/ @Component
func (*Runtime) Application ¶
func (runtime *Runtime) Application() gira.Application
================== application =========================
func (*Runtime) BroadcastReloadResource ¶
func (runtime *Runtime) BroadcastReloadResource(ctx context.Context, name string) (result gira.BroadcastReloadResourceResult, err error)
================== implement gira.AdminClient ================== 重载配置
func (*Runtime) Frameworks ¶
================== framework ========================= 返回框架列表
func (*Runtime) GetAccountCacheClient ¶
func (*Runtime) GetAccountDbClient ¶
================== implement gira.DbClientComponent ==================
func (*Runtime) GetAdminCacheClient ¶
func (*Runtime) GetAdminDbClient ¶
func (*Runtime) GetBehaviorDbClient ¶
func (*Runtime) GetGameCacheClient ¶
func (*Runtime) GetGameDbClient ¶
func (*Runtime) GetGrpcServer ¶
func (runtime *Runtime) GetGrpcServer() gira.GrpcServer
================== gira.GrpcServerComponent ==================
func (*Runtime) GetLogDbClient ¶
func (*Runtime) GetPlatformSdk ¶
func (runtime *Runtime) GetPlatformSdk() gira.PlatformSdk
================== gira.SdkComponent ==================
func (*Runtime) GetRegistry ¶
================== gira.RegistryComponent ==================
func (*Runtime) GetRegistryClient ¶
func (runtime *Runtime) GetRegistryClient() gira.RegistryClient
func (*Runtime) GetResourceDbClient ¶
func (*Runtime) GetResourceLoader ¶
func (runtime *Runtime) GetResourceLoader() gira.ResourceLoader
================== implement gira.ResourceComponent ==================
func (*Runtime) GetServiceContainer ¶
func (runtime *Runtime) GetServiceContainer() gira.ServiceContainer
================== gira.ServiceContainer ==================
func (*Runtime) GetStatDbClient ¶
func (*Runtime) GetWorkDir ¶
Click to show internal directories.
Click to hide internal directories.