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 Query(ctx context.Context, query string, args ...interface{}) (SQLRows, error) QueryRow(ctx context.Context, query string, args ...interface{}) (SQLRow, error) Exec(ctx context.Context, query string, args ...interface{}) error GetDb() interface{} }
type INoSql ¶ added in v0.0.5
type INoSql interface { Init(app IService) error Stop() error String() string Count(ctx context.Context, key interface{}, query interface{}, args ...interface{}) int64 Exists(ctx context.Context, key interface{}, query interface{}, args ...interface{}) bool Insert(ctx context.Context, key interface{}, query interface{}, args ...interface{}) (interface{}, error) FindOne(ctx context.Context, key interface{}, query interface{}, args ...interface{}) (NoSQLRow, error) Find(ctx context.Context, key interface{}, query interface{}, args ...interface{}) (NoSQLRows, error) Exec(ctx context.Context, key interface{}, query interface{}, args ...interface{}) (NoSQLRows, error) Update(ctx context.Context, key interface{}, query interface{}, args ...interface{}) error Delete(ctx context.Context, key interface{}, query interface{}, args ...interface{}) int64 Batch(ctx context.Context, key interface{}, query interface{}, typeOp string, args ...interface{}) (int64, error) GetDb() interface{} }
type IRepository ¶
type IService ¶
type IService interface { Init() error Stop() error GetLogger() ILogger GetConfig() IConfig 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.