Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*Order, error) Count(ctx context.Context) (int64, error) GetAll(ctx context.Context) ([]*Order, error) GetByID(ctx context.Context, id uint) (*Order, error) Create(ctx context.Context, data *Order) error Update(ctx context.Context, data *Order) error Delete(ctx context.Context, id uint) error }
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (Status) Get ¶
func (s Status) Get() StatusEnum
func (Status) Is ¶
func (s Status) Is(value StatusEnum) bool
type StatusEnum ¶
type StatusEnum string
const ( Pending StatusEnum = "pending" Complete StatusEnum = "complete" )
func (StatusEnum) IsValid ¶
func (s StatusEnum) IsValid() bool
Click to show internal directories.
Click to hide internal directories.