Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IController ¶
type IDatabase ¶
type IDatabase interface {
Init(app IService) error
Stop() error
String() string
Exists(ctx context.Context, query interface{}, args ...interface{}) bool
Count(ctx context.Context, query interface{}, args ...interface{}) int64
FindOne(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
Find(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
Exec(ctx context.Context, query interface{}, model interface{}, args ...interface{}) error
Update(ctx context.Context, query interface{}, args ...interface{}) error
Delete(ctx context.Context, query interface{}, args ...interface{}) int64
GetDb() interface{}
}
type IRepository ¶
type IService ¶
type IService interface {
Init() error
Stop() error
GetLogger() ILogger
PushCache(c ICache) IService
GetCache(key string) ICache
PushBroker(c IBroker) IService
GetBroker(key string) IBroker
PushDatabase(c IDatabase) IService
GetDatabase(key string) IDatabase
PushController(c IController) IService
GetController(key string) IController
PushModule(c IModules) IService
GetModule(key string) IModules
PushRepository(c IRepository) IService
GetRepository(key string) IRepository
PushServer(c IServer) IService
GetServer(key string) IServer
PushStorage(c IStorage) IService
GetStorage(key string) IStorage
}
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.