roleUser

package
v0.0.0-...-0e3259e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 2 Imported by: 3

Documentation

Overview

Package roleUser "Every package should have a package comment, a block comment preceding the package clause. For multi-file packages, the package comment only needs to be present in one file, and any 7ne will do. The package comment should introduce the package and provide information relevant to the package as a whole. It will appear first on the godoc page and should set up the detailed documentation that follows."

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeys

func GetKeys(ctx context.Context, key *datastore.Key) ([]*datastore.Key, error)

GetKeys returns the roleUser keys by user or role key and an error.

func GetKeysByUserOrRoleKey

func GetKeysByUserOrRoleKey(ctx context.Context, key *datastore.Key) (
	[]*datastore.Key, error)

GetKeysByUserOrRoleKey returns the user keys as a slice if the role key is provided or returns the role keys as a slice if user key is provided and also an error.

Types

type RoleUser

type RoleUser struct {
	RoleKey *datastore.Key
}

RoleUser datastore: ",noindex" causes json naming problems !!!!!!!!!!!!!!!!!!!!!!!!!!!!! Encoded role key is key's stringID and user key is the parent key.

type RolesUser

type RolesUser []*RoleUser

RolesUser is a []*RoleUser

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL