Documentation
¶
Index ¶
- Variables
- func PutPrincipal(ctx context.Context, op Principal) context.Context
- type Action
- type AllowAll
- type AllowNone
- type Clock
- type Guard
- type ID
- func (id ID) Compare(other ID) int
- func (id ID) Equal(other ID) bool
- func (id ID) IsZero() bool
- func (id ID) MarshalBinary() ([]byte, error)
- func (id ID) MarshalText() ([]byte, error)
- func (id *ID) Scan(src any) error
- func (id ID) String() string
- func (id *ID) UnmarshalBinary(data []byte) error
- func (id *ID) UnmarshalText(data []byte) error
- func (id ID) Value() (driver.Value, error)
- type Page
- type PageReq
- type Path
- type Principal
Constants ¶
This section is empty.
Variables ¶
View Source
Functions ¶
Types ¶
type ID ¶
type ID struct {
// contains filtered or unexported fields
}
func (ID) Compare ¶
Compare returns -1 if id < other, 0 if id == other, 1 if id > other. IDs are compared lexicographically, which matches byte-order comparison because the encoding preserves sort order.
func (ID) Equal ¶
Equal returns true if this ID equals the other ID
func (*ID) Scan ¶
Scan implements sql.Scanner for SQL retrieval (reads from text)
Source Files
¶
- clock.go
- core.go
- guard.go
- id.go
- principal.go
Click to show internal directories.
Click to hide internal directories.