Documentation ¶
Index ¶
- Constants
- func Load(tk loaderKey, ctx context.Context, key dataloader.Key) (interface{}, error)
- func LoadUserNickName(ctx context.Context, key dataloader.Key) (string, error)
- func NewLoaderCache(c cache.Cache, duration time.Duration) *loaderCache
- func NewUserLoader(opts ...dataloader.Option) *dataloader.Loader
- type Collection
- type DataKey
- type GlobalType
- type Loader
- type UserLoader
Constants ¶
View Source
const (
UserLoaderKey loaderKey = "user"
)
Variables ¶
This section is empty.
Functions ¶
func LoadUserNickName ¶
func NewUserLoader ¶
func NewUserLoader(opts ...dataloader.Option) *dataloader.Loader
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func NewLoaderCollection ¶
func NewLoaderCollection() Collection
func (Collection) GetLoader ¶
func (c Collection) GetLoader(k loaderKey) *dataloader.Loader
type UserLoader ¶
type UserLoader struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.