metadataevent

package
v0.0.0-...-c164061 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Kind = 0

Kind for metadata

Variables

This section is empty.

Functions

func New

func New(name string, about string, picture string) *event.Event

New creates a new metadata event

func Validate

func Validate(evt *event.Event) error

Types

type Metadata

type Metadata struct {
	About   string `json:"about,omitempty"`
	Name    string `json:"name,omitempty"`
	Picture string `json:"picture,omitempty"`
}

func GetMetadata

func GetMetadata(evt *event.Event) (*Metadata, error)

Jump to

Keyboard shortcuts

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