Documentation ¶
Index ¶
- Constants
- Variables
- type BlockStep
- type CRUDInteractor
- type DTOBlockStep
- type DTOSwapRequest
- type Handler
- type Repo
- func (r *Repo) Find(blockID, seq int) (*BlockStep, error)
- func (r *Repo) FindRange(blockID, limit, offset int) ([]*DTOBlockStep, error)
- func (r *Repo) Remove(blockID int, stepsIDs ...int) error
- func (r *Repo) Store(blockID, stepID int, seq *int) error
- func (r *Repo) Swap(blockID, seq1, seq2 int) error
- type Repository
- type Usecase
Constants ¶
View Source
const (
ErrNullConvert string = `sql: Scan error on column index 0, name "max(seq)": converting NULL to int is unsupported`
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CRUDInteractor ¶
type CRUDInteractor struct {
// contains filtered or unexported fields
}
func NewCRUDInteractor ¶
func NewCRUDInteractor(repo Repository) *CRUDInteractor
func (*CRUDInteractor) GetRange ¶
func (i *CRUDInteractor) GetRange(blockID, limit, offset int) ([]*DTOBlockStep, error)
func (*CRUDInteractor) Swap ¶
func (i *CRUDInteractor) Swap(blockID, seq1, seq2 int) error
type DTOBlockStep ¶
type DTOSwapRequest ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) BlockSteps ¶
func (h *Handler) BlockSteps(w http.ResponseWriter, r *http.Request)
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewSQLRepository ¶
func NewSQLRepository(db sqlutil.SQLTxDatabase) *Repo
type Repository ¶
Click to show internal directories.
Click to hide internal directories.