Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2021 Changes in this version + var File_session_proto protoreflect.FileDescriptor + func WithSession(ctx context.Context, s *Session) context.Context + type ID struct + Data []byte + func NewID() *ID + func ParseID(x string) (*ID, error) + func (*ID) Descriptor() ([]byte, []int) + func (*ID) ProtoMessage() + func (x *ID) AsUUID() uuid.UUID + func (x *ID) GetData() []byte + func (x *ID) ProtoReflect() protoreflect.Message + func (x *ID) Reset() + func (x *ID) Scan(v interface{}) error + func (x *ID) String() string + func (x *ID) Value() (driver.Value, error) + func (x *ID) Zero() bool + type Location struct + Path string + TenantId *tenant.ID + Version int64 + func (*Location) Descriptor() ([]byte, []int) + func (*Location) ProtoMessage() + func (x *Location) GetPath() string + func (x *Location) GetTenantId() *tenant.ID + func (x *Location) GetVersion() int64 + func (x *Location) ProtoReflect() protoreflect.Message + func (x *Location) Reset() + func (x *Location) String() string + type Scope struct + Kind isScope_Kind + func (*Scope) Descriptor() ([]byte, []int) + func (*Scope) ProtoMessage() + func (m *Scope) GetKind() isScope_Kind + func (x *Scope) GetOnLocation() *Location + func (x *Scope) GetOnPrincipal() *principal.ID + func (x *Scope) GetSuperToken() bool + func (x *Scope) IsSubsetOf(other *Scope) bool + func (x *Scope) ProtoReflect() protoreflect.Message + func (x *Scope) Reset() + func (x *Scope) String() string + type Scope_OnLocation struct + OnLocation *Location + type Scope_OnPrincipal struct + OnPrincipal *principal.ID + type Scope_SuperToken struct + SuperToken bool + type Session struct + Capabilities *capabilities.Capabilities + ExpiresAt *timestamppb.Timestamp + ID *ID + Name string + Note string + PrincipalId *principal.ID + Scope *Scope + func FromContext(ctx context.Context) *Session + func (*Session) Descriptor() ([]byte, []int) + func (*Session) ProtoMessage() + func (x *Session) GetCapabilities() *capabilities.Capabilities + func (x *Session) GetExpiresAt() *timestamppb.Timestamp + func (x *Session) GetID() *ID + func (x *Session) GetName() string + func (x *Session) GetNote() string + func (x *Session) GetPrincipalId() *principal.ID + func (x *Session) GetScope() *Scope + func (x *Session) IsSubsetOf(other *Session) bool + func (x *Session) MarshalJSON() ([]byte, error) + func (x *Session) ProtoReflect() protoreflect.Message + func (x *Session) Reset() + func (x *Session) String() string + func (x *Session) UnmarshalJSON(data []byte) error