Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthFake ¶ added in v0.0.6
type AuthFake struct {
Config *utils.Config
Logger *zap.SugaredLogger
}
type Broker ¶
type Broker struct {
Config *utils.Config
Logger *zap.SugaredLogger
Started bool
Conn *amqp.Connection
Channel *amqp.Channel
}
type BrokerFake ¶
type BrokerFake struct {
}
func (*BrokerFake) Broadcast ¶
func (broker *BrokerFake) Broadcast(message *models.ScraphookMessages) error
func (*BrokerFake) Consume ¶
func (broker *BrokerFake) Consume(handler func(id string, body []byte) error)
func (*BrokerFake) Start ¶
func (broker *BrokerFake) Start()
type Cache ¶
type Cache struct {
Config *utils.Config
Logger *zap.SugaredLogger
Client *goredislib.Client
}
type Tester ¶
type Tester struct {
Config *utils.Config
DBMaster *gorm.DB
DBReplicas *gorm.DB
Broker IBroker
Cache ICache
Auth IAuth
}
func (*Tester) WithBroker ¶
func (tester *Tester) WithBroker()
func (*Tester) WithConfig ¶
func (tester *Tester) WithConfig()
Click to show internal directories.
Click to hide internal directories.