hook

package
v0.0.0-...-c896b06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
	// contains filtered or unexported fields
}

func New

func New(log *log.Logger, db dber) *Hook

func (*Hook) Do

func (h *Hook) Do(space space.Space, content content.Content, ht HookType)

type HookType

type HookType string
const (
	HookNew    HookType = "created"
	HookUpdate HookType = "modified"
	HookDelete HookType = "removed"
)

Jump to

Keyboard shortcuts

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