Documentation ¶
Index ¶
- func FetchAsync[T any](ctx context.Context, coll *Collection, f func() ([]T, *github.Response, error)) ([]T, error)
- func FetchBatchQuery[T any](ctx context.Context, coll *Collection, f func() (map[string]T, error)) ([]T, error)
- func FetchMultiple[T any](ctx context.Context, coll *Collection, f func() ([]T, error)) ([]T, error)
- func FetchPagination[T any](ctx context.Context, coll *Collection, f func() ([]T, *github.Response, error), ...) ([]T, error)
- func FetchSingle[T any](ctx context.Context, coll *Collection, f func() (*T, error)) (*T, error)
- type Cache
- type Collection
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAsync ¶
func FetchBatchQuery ¶
func FetchMultiple ¶
func FetchPagination ¶
func FetchPagination[T any](ctx context.Context, coll *Collection, f func() ([]T, *github.Response, error), opts *github.ListOptions) ([]T, error)
func FetchSingle ¶
Types ¶
type Collection ¶
type Collection struct { *mongo.Collection // contains filtered or unexported fields }
func (*Collection) Database ¶
func (c *Collection) Database() *Database
func (*Collection) IsBroken ¶
func (c *Collection) IsBroken() bool
func (*Collection) Name ¶
func (c *Collection) Name() string
Click to show internal directories.
Click to hide internal directories.