key

package
v0.0.0-...-f39a356 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-2.0, GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertGenealogy

func AssertGenealogy(kind string) (result *genealogyAssertion)

func AssertedKinds

func AssertedKinds() (result []string)

Types

type Key

type Key string

func Decode

func Decode(s string) (result Key, err error)

func DecodeKind

func DecodeKind(kind string, s string) (result Key, err error)

func For

func For(i interface{}, StringId string, IntId int64, parent Key) (result Key, err error)

func New

func New(kind string, stringID string, intID int64, parent Key) (result Key, err error)

func NewWithoutValidate

func NewWithoutValidate(kind string, stringID string, intID int64, parent Key) (result Key)

func (Key) Encode

func (self Key) Encode() (result string)

func (Key) Equal

func (s Key) Equal(k Key) bool

func (Key) IntID

func (self Key) IntID() (result int64)

func (Key) Kind

func (self Key) Kind() (result string)

func (Key) MarshalJSON

func (self Key) MarshalJSON() (b []byte, err error)

func (Key) Parent

func (self Key) Parent() (result Key)

func (Key) Split

func (self Key) Split() (kind string, stringID string, intID int64, parent Key)

func (Key) String

func (self Key) String() string

func (Key) StringID

func (self Key) StringID() (result string)

func (*Key) UnmarshalJSON

func (self *Key) UnmarshalJSON(b []byte) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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