Documentation ¶
Index ¶
- Constants
- type Aggregation
- type MySQLRepository
- func (r *MySQLRepository) AggregateOccurrences(seqId int, userQuery types.AggQuery) ([]Aggregation, error)
- func (r *MySQLRepository) CheckDatabaseConnection() string
- func (r *MySQLRepository) CountOccurrences(seqId int, userQuery types.CountQuery) (int64, error)
- func (r *MySQLRepository) GetOccurrences(seqId int, userQuery types.ListQuery) ([]Occurrence, error)
- func (r *MySQLRepository) GetPart(seqId int) (int, error)
- type Occurrence
- type Repository
Constants ¶
View Source
const ( MinLimit = 10 MaxLimit = 200 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregation ¶
type Aggregation = types.Aggregation
type MySQLRepository ¶
type MySQLRepository struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *gorm.DB) *MySQLRepository
func (*MySQLRepository) AggregateOccurrences ¶
func (r *MySQLRepository) AggregateOccurrences(seqId int, userQuery types.AggQuery) ([]Aggregation, error)
func (*MySQLRepository) CheckDatabaseConnection ¶
func (r *MySQLRepository) CheckDatabaseConnection() string
func (*MySQLRepository) CountOccurrences ¶
func (r *MySQLRepository) CountOccurrences(seqId int, userQuery types.CountQuery) (int64, error)
func (*MySQLRepository) GetOccurrences ¶
func (r *MySQLRepository) GetOccurrences(seqId int, userQuery types.ListQuery) ([]Occurrence, error)
type Occurrence ¶
type Occurrence = types.Occurrence
type Repository ¶
Click to show internal directories.
Click to hide internal directories.