Documentation ¶
Index ¶
- func AddExtended(key string, value interface{})
- func GetBroker() interfaces.Broker
- func GetExtended(key string) interface{}
- func GetKey() interfaces.RSAKey
- func GetMiddleware() interfaces.Middleware
- func GetMongoDatabase() interfaces.MongoDatabase
- func GetRedisPool() interfaces.RedisPool
- func GetSQLDatabase() interfaces.SQLDatabase
- func GetValidator() interfaces.Validator
- 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 ¶
func AddExtended ¶ added in v1.0.4
func AddExtended(key string, value interface{})
AddExtended free function for add extended
func GetBroker ¶ added in v1.0.4
func GetBroker() interfaces.Broker
GetBroker free function for get broker
func GetExtended ¶ added in v1.0.4
func GetExtended(key string) interface{}
GetExtended free function for get extended
func GetKey ¶ added in v1.0.4
func GetKey() interfaces.RSAKey
GetKey free function for get key (RSA)
func GetMiddleware ¶ added in v1.0.4
func GetMiddleware() interfaces.Middleware
GetMiddleware free function for get middleware
func GetMongoDatabase ¶ added in v1.0.4
func GetMongoDatabase() interfaces.MongoDatabase
GetMongoDatabase free function for get mongo database
func GetRedisPool ¶ added in v1.0.4
func GetRedisPool() interfaces.RedisPool
GetRedisPool free function for get redis pool
func GetSQLDatabase ¶ added in v1.0.4
func GetSQLDatabase() interfaces.SQLDatabase
GetSQLDatabase free function for get sql database
func GetValidator ¶ added in v1.0.4
func GetValidator() interfaces.Validator
GetValidator free function for get validator
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.