Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct { Users int `json:"users"` Thumbnails StoreStats `json:"thumbnails"` Tracks StoreStats `json:"tracks"` }
type StatsHandler ¶
type StatsHandler struct {
// contains filtered or unexported fields
}
func NewStatsHandler ¶
func NewStatsHandler( trackStore TrackStore, thumbnailStore ThumbnailStore, transactionProvider TransactionProvider, ) *StatsHandler
func (*StatsHandler) Execute ¶
func (h *StatsHandler) Execute() (Stats, error)
type StoreStats ¶
type ThumbnailStore ¶
type ThumbnailStore interface {
GetStats() (StoreStats, error)
}
type TrackStore ¶
type TrackStore interface {
GetStats() (StoreStats, error)
}
type TransactableRepositories ¶
type TransactableRepositories struct {
Users UserRepository
}
type TransactionHandler ¶
type TransactionHandler func(repositories *TransactableRepositories) error
type TransactionProvider ¶
type TransactionProvider interface {
Read(handler TransactionHandler) error
}
type UserRepository ¶
Click to show internal directories.
Click to hide internal directories.