extension

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package extension outlines the interfaces required for an ActivityStreams extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExtension

func RegisterExtension(name string, plugin Plugin)

func RegisterPluginProvider

func RegisterPluginProvider(p PluginProvider)

func RegisteredPlugins

func RegisteredPlugins() []string

Types

type NamedPlugin

type NamedPlugin struct {
	Name   string
	Plugin Plugin
}

type Plugin

type Plugin interface {
	NewTypeResolver()
}

Plugin

type PluginProvider

type PluginProvider interface {
	Add() <-chan NamedPlugin
	Remove() <-chan string
	// nil errors will be sent in response to successful calls to Add or Remove
	Err() chan<- error
	Done() <-chan struct{}
}

type PropertyResolver

type PropertyResolver interface {
}

type Resolver

type Resolver interface {
	Deserialize(map[string]interface{}) error
}

Resolver

Jump to

Keyboard shortcuts

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