storage

package
v0.0.0-...-60dd0c8 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path         string
	FSPath       string
	ContentType  string
	LastModified time.Time
	Etag         string
	Title        string
	StyleHash    string
	Headers      map[string]string
	Encodings    map[string]*buffer.Buffer
}

func (*File) AvailableEncodings

func (f *File) AvailableEncodings() []string

func (*File) CalculateStyleHash

func (f *File) CalculateStyleHash() (err error)

type Reader

type Reader interface {
	GetFile(path string) (*File, error)
	CanonicalisePath(path string) (string, bool)
}

type Writer

type Writer interface {
	Mkdirp(path string) error

	NewFileFromPost(post *content.Post) *File

	Write(pathname string, title string, content *buffer.Buffer) error
	WritePost(post *content.Post, content *buffer.Buffer) error
	WriteFile(file *File, content *buffer.Buffer) error
}

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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