Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDatabaseConnection is returned when server fails to connect to // the database. ErrDatabaseConnection = errors.New("database connection error") // ErrDatabasePing is returned when server fails to ping the // database. ErrDatabasePing = errors.New("database ping error") // ErrPreparingStmt is returned when server fails to prepare // a prepared statement. ErrPreparingStmt = errors.New("error executing prepared statement") // ErrExecutingPreparedStmt is returned when server fails to execute // a query with a prepared statement. ErrExecutingPreparedStmt = errors.New("error executing prepared statement") // ErrScanningRows is returned when server fails to scan the rows // returned by a query. ErrScanningRows = errors.New("error trying to scan result rows") )
Functions ¶
This section is empty.
Types ¶
type StatsService ¶
type StatsService struct {
// contains filtered or unexported fields
}
func NewStatsService ¶
func NewStatsService(config Config) (StatsService, error)
func (StatsService) GetByID ¶
func (s StatsService) GetByID(statsDescriptorID string) (benchttp.Stats, error)
func (StatsService) ListAvailable ¶
func (s StatsService) ListAvailable(userID string) ([]benchttp.StatsDescriptor, error)
Click to show internal directories.
Click to hide internal directories.