Skip to content

domain ​

go
import "github.com/prescriptoo/prescriptoo-api/services/authorization/internal/domain"

Package domain defines private authorization snapshots.

Index ​

type Member ​

Member binds versioned assignments and overrides to a membership incarnation.

go
type Member struct {
    MembershipID string
    Version      int64
    RoleIDs      []string
    Overrides    []p.PermissionOverride
}

type State ​

State contains one consistent scope snapshot.

go
type State struct {
    Roles   map[string]p.Role
    Members map[string]Member
}

func Clone ​

go
func Clone(source *State) *State

Clone copies a scope snapshot without sharing mutable grant slices.

func Empty ​

go
func Empty() *State

Empty creates an empty scope snapshot.

Generated by gomarkdoc

Documentation follows the source. Planned contracts are marked explicitly.