Documentation ¶
Index ¶
- Constants
- Variables
- func Dupstore(s *Base, d *Base)
- func Format()
- func Hash2block(h *Hash, i int, l uint64) (uint64, error)
- func MintLabel(s string) (Knod, Body)
- func MintPrincipal(pub, priv []byte) (Knod, Knod, Body, Knod, Body)
- func Op2string(o byte) string
- func Place()
- func Readin()
- func Readone()
- func Retrieve()
- func Validate()
- func Writeone()
- func Writeout()
- type Actor
- type App
- type Base
- func (b *Base) Get0(h *Hash) (k *Knod, found bool)
- func (b *Base) Init(fn string, reinit bool) (br *Base, e error)
- func (b *Base) LoadPreULs() (e error)
- func (b Base) ReadBodyBlock(i uint64) (*Body, error)
- func (b Base) ReadKnodBlock(i uint64) (*Knod, error)
- func (b *Base) SetLocalTemporacle() (e error)
- func (b *Base) SetWorld() (e error)
- func (b Base) WriteBodyBlock(kb *Body, i uint64) (e error)
- func (b Base) WriteKnodBlock(k *Knod, i uint64) (e error)
- type Body
- type Btext
- type Btlen
- type Cksm
- type Hash
- type Kdate
- type Kndx
- type Knod
- type Lodge
- type Post
- type Sign
- type Slst
- type Tag
Constants ¶
View Source
const ( UNINITIALIZED int = 0 // Lodge status UNPREPARED int = 1 AVAILABLE int = 2 LOADING int = 3 STANDBY int = 4 KFREE byte = 0 LABEL byte = 1 INTRO byte = 2 PRIVT byte = 3 TEMPO byte = 4 DFOLD byte = 5 NMACC byte = 6 ITEXT byte = 7 REFER byte = 8 KROOT byte = 251 BDURL byte = 252 BODYN byte = 253 BODY0 byte = 254 KBNCE byte = 255 HASH = 1 HASHSIGN = 2 SIGN = 3 VERIFY = 4 )
Variables ¶
View Source
var Letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
Functions ¶
Types ¶
type Actor ¶
type Actor struct { Id uint64 Username string Acct string Display_name string Locked bool Bot bool Discoverable bool Group bool Created_at string Note string Url string Avatar string Avatar_static string Header string Header_static string Followers_count int Following_count int Statuses_count int Last_status_at string Emojis []string Fields []string }
type Base ¶
type Base struct { Status int Store *os.File Limit uint64 Fqdn string Subn string StoreName string }
func (*Base) LoadPreULs ¶
func (*Base) SetLocalTemporacle ¶
type Body ¶
type Knod ¶
type Knod struct { Op byte // op except 0 = hash slot free, 255 = hash slot available due to allocation bounce on content size Subl byte // index within reference (low) Subh byte // index within reference (high) Date Kdate Hk Hash Hr Hash Ttag Kndx Pchk Cksm // checksum of Rchk of nodes held... if two lodges differ on this, synchronization is indicated Ptag Kndx Tp Slst Itag Kndx // index to a well-known universal label for un-tracked tagging, expanded to hash on transmission or zero, also may be used as salt Rchk Cksm // checksum of Pchk of nodes held... if two lodges differ on this, synchronization is indicated Rtag Kndx Tr Slst S Sign }
func MintCategory ¶
func (*Knod) HashSignVerify ¶
hash, sign, or verify the concatenated binary value of the op, date, tag hash, parent hash, ref hash, text content.
type Post ¶
type Post struct { Id uint64 Created_at string In_reply_to_id uint64 In_reply_to_account_id uint64 Sensitive bool Spoiler_text string Visibility int Language string Uri string Url string Replies_count int Reblogs_count int Favourites_count int Edited_at string Favourited bool Reblogged bool Muted bool Bookmarked bool Content string Filtered []string Reblog string Account Actor Media_attachments []string Mentions []string Tags []Tag Emojis []string Card string Poll string }
Click to show internal directories.
Click to hide internal directories.