content

package
v0.0.0-...-8ef0ebb Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mention

type Mention struct {
	UserID   bson.ObjectId
	Username string
	Comment  string
	Original string
}

Mention ref.

func (Mention) Replace

func (m Mention) Replace(content string) string

type Parseable

type Parseable interface {
	GetContent() string
	UpdateContent(string) Parseable
	GetParseableMeta() map[string]interface{}
}

func Postprocess

func Postprocess(d deps, c Parseable) (processed Parseable, err error)

Postprocess a parseable type.

func Preprocess

func Preprocess(d deps, c Parseable) (processed Parseable, err error)

Preprocess a parseable type.

type Preprocessor

type Preprocessor func(deps, Parseable) (Parseable, error)

type Processor

type Processor func(deps, Parseable, tags) (Parseable, error)

Content processor definition.

Jump to

Keyboard shortcuts

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