meta

package
v0.0.0-...-9de2c1c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	ID    string           // "http://www.w3.org/ns/activitystreams#"
	Short string           // "as"
	Props []*Prop          // All properties in this namespace.
	Types map[string]*Type // All Types in this namespace.
}

Describes a namespace.

type Prop

type Prop struct {
	ID      string
	Short   string
	Comment string
}

Describes a property.

type Type

type Type struct {
	ID         string  // "http://www.w3.org/ns/activitystreams#Note"
	Short      string  // "Note"
	SubClassOf []*Type // Supertypes, if any.
	Props      []*Prop // Property names.

	// Casts an arbitrary Entity to this type.
	// Underlying Objects are not copied - see the note on Manifest!
	Cast func(ld.Entity) ld.Entity
}

Describes a type.

func (*Type) IsSubClassOf

func (t *Type) IsSubClassOf(other *Type) bool

Returns whether the type inherits from another type, somewhere up the inheritance chain.

Jump to

Keyboard shortcuts

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