identity

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AddressbookContactAddedType = "event:nimona.io/identity/addressbook.ContactAdded"
View Source
const AddressbookContactRemovedType = "event:nimona.io/identity/addressbook.ContactRemoved"
View Source
const AddressbookStreamRootType = "stream:nimona.io/identity/addressbook"
View Source
const ProfileStreamRootType = "stream:nimona.io/identity.Profile"
View Source
const ProfileType = "nimona.io/identity.Profile"
View Source
const ProfileUpdatedType = "event:nimona.io/identity.Profile.Updated"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressbookContactAdded

type AddressbookContactAdded struct {
	Metadata    object.Metadata  `nimona:"@metadata:m,type=event:nimona.io/identity/addressbook.ContactAdded"`
	Alias       string           `nimona:"alias:s"`
	RemoteParty crypto.PublicKey `nimona:"remoteParty:s"`
	Profile     Profile          `nimona:"profile:m"`
	Timestamp   string           `nimona:"timestamp:s"`
}

type AddressbookContactRemoved

type AddressbookContactRemoved struct {
	Metadata    object.Metadata  `nimona:"@metadata:m,type=event:nimona.io/identity/addressbook.ContactRemoved"`
	RemoteParty crypto.PublicKey `nimona:"remoteParty:s"`
	Timestamp   string           `nimona:"timestamp:s"`
}

type AddressbookStreamRoot

type AddressbookStreamRoot struct {
	Metadata object.Metadata `nimona:"@metadata:m,type=stream:nimona.io/identity/addressbook"`
}

type Profile

type Profile struct {
	Metadata  object.Metadata `nimona:"@metadata:m,type=nimona.io/identity.Profile"`
	Version   int64           `nimona:"version:i"`
	Timestamp string          `nimona:"timestamp:s"`
	Name      string          `nimona:"name:s"`
	Image     tilde.Digest    `nimona:"image:s"`
}

func Lookup

TODO Implement

type ProfileStreamRoot

type ProfileStreamRoot struct {
	Metadata object.Metadata `nimona:"@metadata:m,type=stream:nimona.io/identity.Profile"`
}

type ProfileUpdated

type ProfileUpdated struct {
	Metadata object.Metadata `nimona:"@metadata:m,type=event:nimona.io/identity.Profile.Updated"`
	Profile  Profile         `nimona:"profile:m"`
}

Jump to

Keyboard shortcuts

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