key

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 4 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 Audience

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

Audience is the storage key for mapping audience IDs. A venture can have multiple audiences, while a user can be part of multiple ventures as well as multiple audiences.

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 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 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