Documentation ¶
Index ¶
- func LoadApp(ctx context.Context, key string) (*pb.AppInfo, error)
- func LoadApps(ctx context.Context, keys []string) ([]*pb.AppInfo, error)
- func LoadGroup(ctx context.Context, key string) (*pb.GroupInfo, error)
- func LoadGroups(ctx context.Context, keys []string) ([]*pb.GroupInfo, error)
- func LoadOrg(ctx context.Context, key string) (*pb.OrgInfo, error)
- func LoadOrgs(ctx context.Context, keys []string) ([]*pb.OrgInfo, error)
- func LoadUser(ctx context.Context, key string) (*pb.UserInfo, error)
- func LoadUsers(ctx context.Context, keys []string) ([]*pb.UserInfo, error)
- type Collection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadGroups ¶
LoadGroups Data
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
Collection holds an internal lookup of initialized batch data load functions.
func Initialize ¶
func Initialize(service *client.MicroClient) Collection
Initialize a lookup map of context keys to batch functions.
When Attach is called on the Collection, the batch functions are used to create new dataloader instances. The instances are attached to the request context at the provided keys.
The keys are then used to extract the dataloader instances from the request context.
Click to show internal directories.
Click to hide internal directories.