Documentation
¶
Overview ¶
Package iterator provides a generic iterator to be used as a building block for typed iterators. In your applications, use the typed iterators returned by the secrethub package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Done = errio.Namespace("iterator").Code("done").Error("there are no more items left")
)
Errors
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func New ¶
func New(newPaginator PaginatorConstructor) Iterator
type PaginatorConstructor ¶
func PaginatorFactory ¶
func PaginatorFactory(fetch func() ([]interface{}, error)) PaginatorConstructor
PaginatorFactory returns a paginator constructor that constructs a paginator with the provided fetch function.
Click to show internal directories.
Click to hide internal directories.