Documentation ¶
Index ¶
- func DeleteAssignedRoles(_ context.Context, db helpers.DBWriter, itemIDs ...string) error
- func GetAssignedRole(ctx context.Context, db helpers.Queryer, ...) (model.AssignedRole, bool, error)
- func GetAssignedRoles(ctx context.Context, db helpers.Queryer, entityID, circleID, userID string) ([]model.AssignedRole, error)
- func GetCircleAssignedRoles(ctx context.Context, db helpers.Queryer, entityID string, circleIDs ...string) ([]model.AssignedRole, error)
- func GetRole(ctx context.Context, db helpers.RowReader, itemID string) (model.Role, bool, error)
- func GetRoles(ctx context.Context, db helpers.Reader, itemIDs []string) ([]model.Role, error)
- func InsertAssignedRole(_ context.Context, db helpers.BufferWriter, in model.AssignedRole) error
- func InsertRole(_ context.Context, db helpers.BufferWriter, in model.Role) error
- func NewSpannerClient(ctx context.Context, dsn, adcCredPath string) (*spanner.Client, error)
- func PartialUpdateRoles(_ context.Context, db helpers.BufferWriter, itemIDs []string, ...) error
- func UpdateRole(_ context.Context, db helpers.BufferWriter, in model.Role) error
- type Repo
- func (r Repo) Close()
- func (r Repo) ReadOnlyTx(ctx context.Context, f func(context.Context, repo.ReadActions) error) error
- func (r Repo) ReadWriteTx(ctx context.Context, f func(context.Context, repo.ReadWriteActions) error) (time.Time, error)
- func (r Repo) SingleRead() repo.ReadActions
- func (r Repo) SingleWrite() repo.WriteActions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAssignedRoles ¶
func GetAssignedRole ¶
func GetAssignedRoles ¶
func GetCircleAssignedRoles ¶
func InsertAssignedRole ¶
func InsertAssignedRole( _ context.Context, db helpers.BufferWriter, in model.AssignedRole, ) error
func InsertRole ¶
func NewSpannerClient ¶
func PartialUpdateRoles ¶
func PartialUpdateRoles(_ context.Context, db helpers.BufferWriter, itemIDs []string, in model.RoleUpdate) error
func UpdateRole ¶
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewRepoWithClient ¶
func (Repo) ReadOnlyTx ¶
func (Repo) ReadWriteTx ¶
func (Repo) SingleRead ¶
func (r Repo) SingleRead() repo.ReadActions
func (Repo) SingleWrite ¶
func (r Repo) SingleWrite() repo.WriteActions
Click to show internal directories.
Click to hide internal directories.