usecases

package
v0.0.0-...-5cc9522 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBool

func FormatBool(input bool) string

func FormatDate

func FormatDate(input time.Time, fmts ...string) string

func RenderMarkdown

func RenderMarkdown(input string) template.HTML

Types

type Emailer

type Emailer interface {
	SendMessage(to, subject, message string) error
}

type FileRepo

type FileRepo interface {
	SaveFile(input *os.File) error
	SaveMultipartFile(input *multipart.FileHeader) error
	DeleteFile(file string) error
	ListFiles() ([]*domain.UploadNode, error)
}

type RepoManager

type RepoManager struct {
	CommentRepo  domain.CommentRepo
	ContactRepo  domain.ContactRepo
	UserRepo     domain.UserRepo
	CategoryRepo domain.CategoryRepo
	PostRepo     domain.PostRepo
	PageRepo     domain.PageRepo
	PayloadRepo  domain.PayloadRepo
	ViewRepo     domain.ViewRepo
	ResetRepo    domain.ResetRepo
	SeriesRepo   domain.SeriesRepo
	UploadRepo   FileRepo
}

Jump to

Keyboard shortcuts

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