Documentation ¶
Index ¶
- Variables
- type BatchDeleteBeats
- type BatchDeletePlotPoints
- type CreateBeat
- type CreateBeatRequest
- type CreatePlotPoint
- type CreatePlotPointRequest
- type DeleteBeat
- type DeletePlotPoint
- type GetBeat
- type GetPlotPoint
- type ListBeats
- type ListPlotPoints
- type SearchBeats
- type SearchBeatsRequest
- type SearchPlotPoints
- type SearchPlotPointsRequest
- type UpdateBeat
- type UpdateBeatRequest
- type UpdatePlotPoint
- type UpdatePlotPointRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBeatNotFound = errors.New("beat not found")
View Source
var ErrPlotPointNotFound = errors.New("plot point not found")
Functions ¶
This section is empty.
Types ¶
type BatchDeleteBeats ¶
type BatchDeleteBeats interface {
Exec(ctx context.Context, ids uuid.UUIDs, creatorID string) ([]*entities.Beat, error)
}
func NewBatchDeleteBeats ¶
func NewBatchDeleteBeats(database bun.IDB) BatchDeleteBeats
type BatchDeletePlotPoints ¶
type BatchDeletePlotPoints interface {
Exec(ctx context.Context, ids uuid.UUIDs, creatorID string) ([]*entities.PlotPoint, error)
}
func NewBatchDeletePlotPoints ¶
func NewBatchDeletePlotPoints(database bun.IDB) BatchDeletePlotPoints
type CreateBeat ¶
type CreateBeat interface {
Exec(ctx context.Context, id uuid.UUID, now time.Time, data *CreateBeatRequest) (*entities.Beat, error)
}
func NewCreateBeat ¶
func NewCreateBeat(database bun.IDB) CreateBeat
type CreateBeatRequest ¶
type CreatePlotPoint ¶
type CreatePlotPoint interface {
Exec(ctx context.Context, id uuid.UUID, now time.Time, data *CreatePlotPointRequest) (*entities.PlotPoint, error)
}
func NewCreatePlotPoint ¶
func NewCreatePlotPoint(database bun.IDB) CreatePlotPoint
type CreatePlotPointRequest ¶
type DeleteBeat ¶
type DeleteBeat interface {
Exec(ctx context.Context, id uuid.UUID, creatorID string) (*entities.Beat, error)
}
func NewDeleteBeat ¶
func NewDeleteBeat(database bun.IDB) DeleteBeat
type DeletePlotPoint ¶
type DeletePlotPoint interface {
Exec(ctx context.Context, id uuid.UUID, creatorID string) (*entities.PlotPoint, error)
}
func NewDeletePlotPoint ¶
func NewDeletePlotPoint(database bun.IDB) DeletePlotPoint
type GetBeat ¶
func NewGetBeat ¶
type GetPlotPoint ¶
type GetPlotPoint interface {
Exec(ctx context.Context, id uuid.UUID) (*entities.PlotPoint, error)
}
func NewGetPlotPoint ¶
func NewGetPlotPoint(database bun.IDB) GetPlotPoint
type ListBeats ¶
func NewListBeats ¶
type ListPlotPoints ¶
type ListPlotPoints interface {
Exec(ctx context.Context, ids []uuid.UUID) ([]*entities.PlotPoint, error)
}
func NewListPlotPoints ¶
func NewListPlotPoints(database bun.IDB) ListPlotPoints
type SearchBeats ¶
type SearchBeats interface {
Exec(ctx context.Context, request *SearchBeatsRequest) (uuid.UUIDs, error)
}
func NewSearchBeats ¶
func NewSearchBeats(database bun.IDB) SearchBeats
type SearchBeatsRequest ¶
type SearchPlotPoints ¶
type SearchPlotPoints interface {
Exec(ctx context.Context, request *SearchPlotPointsRequest) (uuid.UUIDs, error)
}
func NewSearchPlotPoints ¶
func NewSearchPlotPoints(database bun.IDB) SearchPlotPoints
type SearchPlotPointsRequest ¶
type SearchPlotPointsRequest struct { Limit int Offset int Sort entities.SortPlotPoint SortDirection database.SortDirection CreatorIDs []string }
type UpdateBeat ¶
type UpdateBeat interface {
Exec(ctx context.Context, id uuid.UUID, now time.Time, data *UpdateBeatRequest) (*entities.Beat, error)
}
func NewUpdateBeat ¶
func NewUpdateBeat(database bun.IDB) UpdateBeat
type UpdateBeatRequest ¶
type UpdatePlotPoint ¶
type UpdatePlotPoint interface {
Exec(ctx context.Context, id uuid.UUID, now time.Time, data *UpdatePlotPointRequest) (*entities.PlotPoint, error)
}
func NewUpdatePlotPoint ¶
func NewUpdatePlotPoint(database bun.IDB) UpdatePlotPoint
type UpdatePlotPointRequest ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.