Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoMatch = errors.New("no match") ErrRangeCheckError = errors.New("range check error") )
View Source
var Now = func() time.Time { return time.Now() }
Current time. Override this function in the debug environment.
Functions ¶
This section is empty.
Types ¶
type ArrayProvider ¶
type ArrayProvider struct { Quantity int // Items count Index int // Current index (starts from 1) Loader func(ctx context.Context) (int, error) // contains filtered or unexported fields }
ArrayProvider is base for CustomArrayProvider
func (*ArrayProvider) Count ¶
func (provider *ArrayProvider) Count(ctx context.Context) (int, error)
func (*ArrayProvider) Import ¶
func (provider *ArrayProvider) Import(ctx context.Context, pagination *Pagination) error
type Pagination ¶
type Provider ¶
type Provider interface { // Get displayed records count Count(ctx context.Context) (int, error) // Get total records count Total(ctx context.Context) (int, error) // Import records Import(ctx context.Context, pagination *Pagination) error // Go to next row Next(ctx context.Context) error }
Data provider for receive external data
Click to show internal directories.
Click to hide internal directories.