ports

package
v0.0.0-...-fe3a5bd Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostService

type PostService interface {
	Posts(opts *PostsOptions) ([]*domain.Post, error)
	GetPost(postName string) (*domain.Post, error)
	GetPostAsset(postName string, assetName string) (string, error)
	SearchPosts(term string) ([]*domain.Post, error)
}

type PostsContentOpt

type PostsContentOpt string
const (
	HTML     PostsContentOpt = "html"
	Markdown PostsContentOpt = "markdown"
	None     PostsContentOpt = "none"
)

func (PostsContentOpt) String

func (c PostsContentOpt) String() string

I really miss real enums

type PostsOptions

type PostsOptions struct {
	FetchN  *uint64
	SkipN   *uint64
	Content *PostsContentOpt
}

Jump to

Keyboard shortcuts

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