key

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 3 Imported by: 56

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID added in v0.3.0

type ID struct {
	// contains filtered or unexported fields
}

func (*ID) F added in v0.3.0

func (i *ID) F() float64

func (*ID) S added in v0.3.0

func (i *ID) S() string

type Key added in v0.3.0

type Key struct {
	// contains filtered or unexported fields
}

func Claim added in v0.4.3

func Claim(m map[string]string) *Key

Claim is the storage key for mapping user sibject claims to IDs. A user can have multiple subject claims.

func Invite added in v0.5.0

func Invite(m map[string]string) *Key

Invite is the storage key for mapping invite IDs. A user can be associated with one invite per venture or timeline.

func Message

func Message(m map[string]string) *Key

Message is the storage key for mapping message IDs. A message can have multiple replies, which are just messages as well.

func Role added in v0.3.0

func Role(m map[string]string) *Key

Role is the storage key for mapping role IDs. A user can have multiple roles associated to resources. The inserted resource key is the filled, hashed version of any of the other resource keys defined here, e.g. sha265("ven:al9qy:tml") for records of timeline roles.

func Subject added in v0.4.0

func Subject(m map[string]string) *Key

Subject is the storage key for mapping user IDs. A user can have multiple associations with multiple resources.

func Timeline

func Timeline(m map[string]string) *Key

Timeline is the storage key for mapping timeline IDs. A timeline can have multiple updates.

func Update

func Update(m map[string]string) *Key

Update is the storage key for mapping update IDs. An update can have multiple messages.

func User added in v0.4.0

func User(m map[string]string) *Key

User is the storage key for mapping user IDs. A user can have multiple associations with multiple resources.

func Venture added in v0.3.0

func Venture(m map[string]string) *Key

Venture is the storage key for mapping venture IDs. A venture can have multiple timelines.

func (*Key) Elem added in v0.3.0

func (k *Key) Elem() string

func (*Key) ID added in v0.3.0

func (k *Key) ID() *ID

func (*Key) List added in v0.3.0

func (k *Key) List() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL