Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTestAdapters ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func BuildService ¶
func NewService ¶
func NewService( app app.Application, server http.Server, metricsServer http.MetricsServer, downloader *app.Downloader, receivedEventSubscriber *memorypubsub.ReceivedEventSubscriber, tweetCreatedEventSubscriber *sqlitepubsub.TweetCreatedEventSubscriber, metricsTimer *timer.Metrics, migrationsRunner *migrations.Runner, migrations migrations.Migrations, migrationsProgressCallback migrations.ProgressCallback, ) Service
func (Service) App ¶
func (s Service) App() app.Application
type TestApplication ¶
type TestApplication struct { SendTweetHandler *app.SendTweetHandler CurrentTimeProvider *mocks.CurrentTimeProvider UserTokensRepository *mocks.UserTokensRepository Twitter *mocks.Twitter }
func BuildTestApplication ¶
func BuildTestApplication(tb testing.TB) (TestApplication, error)
Click to show internal directories.
Click to hide internal directories.