content

package
v0.0.0-...-b84af7b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot()

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