Documentation
¶
Overview ¶
Package immutablevector owns compact immutable slices behind authenticated roots.
Index ¶
- type Authority
- type Root
- func (r Root[T]) At(authority *Authority[T], index int) (T, error)
- func (r Root[T]) Len(authority *Authority[T]) (int, error)
- func (r Root[T]) Range(authority *Authority[T], visit func(T) bool) error
- func (r Root[T]) SameRoot(authority *Authority[T], other Root[T]) (bool, error)
- func (r Root[T]) ValidateOwnership(authority *Authority[T]) error
- func (r Root[T]) Values(authority *Authority[T]) ([]T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority[T any] struct { // contains filtered or unexported fields }
Authority authenticates roots created for one owner.
func NewAuthority ¶
NewAuthority creates an isolated root authority.
type Root ¶
type Root[T any] struct { // contains filtered or unexported fields }
Root is a copyable authenticated immutable vector.
func (Root[T]) ValidateOwnership ¶
ValidateOwnership verifies a root in O(1).
Click to show internal directories.
Click to hide internal directories.