Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncResult ¶
type AsyncResult[ApiRetT any, RespT any] struct { SyncResult[ApiRetT, RespT] Err error }
type Basic ¶
func (*Basic[ApiRetT, RespT]) Async ¶
func (p *Basic[ApiRetT, RespT]) Async(params ...interface{}) <-chan AsyncResult[ApiRetT, RespT]
func (*Basic[ApiRetT, RespT]) Sync ¶
func (p *Basic[ApiRetT, RespT]) Sync(params ...interface{}) (SyncResult[ApiRetT, RespT], error)
type MappedPager ¶
type MappedPager[ApiRetT any, UserRetT any, RespT any] struct { Opts interface{} Fn interface{} Mapper func(ApiRetT) []UserRetT // contains filtered or unexported fields }
func NewMapper ¶
func NewMapper[ApiRetT any, UserRetT any, RespT any](fn interface{}, opts interface{}, mapper func(ApiRetT) []UserRetT, optioner Optioner) *MappedPager[ApiRetT, UserRetT, RespT]
func (*MappedPager[ApiRetT, UserRetT, RespT]) Async ¶
func (p *MappedPager[ApiRetT, UserRetT, RespT]) Async(params ...interface{}) <-chan AsyncResult[UserRetT, RespT]
func (*MappedPager[ApiRetT, UserRetT, RespT]) Sync ¶
func (p *MappedPager[ApiRetT, UserRetT, RespT]) Sync(params ...interface{}) (SyncResult[UserRetT, RespT], error)
type SyncResult ¶
Click to show internal directories.
Click to hide internal directories.