processors

package
v0.0.0-...-23cd6c9 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Directory    string `yaml:"dir" validate:"required"`
	TemplateFile string `yaml:"template" validate:"required"`
}

type Processor

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

func New

func New(cfg Config, database *database.Database) Processor

func (Processor) Draft

func (prcr Processor) Draft(post_id int64, method string) (*database.CompletePost, apierror.IApiError)

func (Processor) Drafts

func (prcr Processor) Drafts(method string) ([]database.Post, apierror.IApiError)

func (Processor) Edit

func (prcr Processor) Edit(post_history_id int64, method string) (*database.CompletePostHistory, apierror.IApiError)

func (Processor) SaveForm

func (prcr Processor) SaveForm(p post.Post) apierror.IApiError

func (Processor) SubmitForm

func (prcr Processor) SubmitForm(p post.Post) apierror.IApiError

Jump to

Keyboard shortcuts

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