Documentation ¶
Index ¶
- type Dependency
- type Option
- func SetBroker(broker interfaces.Broker) Option
- func SetExtended(ext map[string]interface{}) Option
- func SetKey(key interfaces.RSAKey) Option
- func SetMiddleware(mw interfaces.Middleware) Option
- func SetMongoDatabase(db interfaces.MongoDatabase) Option
- func SetRedisPool(db interfaces.RedisPool) Option
- func SetSQLDatabase(db interfaces.SQLDatabase) Option
- func SetValidator(validator interfaces.Validator) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency interface { GetMiddleware() interfaces.Middleware SetMiddleware(mw interfaces.Middleware) GetBroker() interfaces.Broker SetBroker(i interfaces.Broker) GetSQLDatabase() interfaces.SQLDatabase GetMongoDatabase() interfaces.MongoDatabase GetRedisPool() interfaces.RedisPool GetKey() interfaces.RSAKey SetKey(i interfaces.RSAKey) GetValidator() interfaces.Validator SetValidator(v interfaces.Validator) GetExtended(key string) interface{} AddExtended(key string, value interface{}) }
Dependency base
type Option ¶
type Option func(*deps)
Option func type
func SetMongoDatabase ¶
func SetMongoDatabase(db interfaces.MongoDatabase) Option
SetMongoDatabase option func
func SetSQLDatabase ¶
func SetSQLDatabase(db interfaces.SQLDatabase) Option
SetSQLDatabase option func
func SetValidator ¶
func SetValidator(validator interfaces.Validator) Option
SetValidator option func
Click to show internal directories.
Click to hide internal directories.