files

package
v0.0.0-...-f98b078 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 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 FileStorage

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

func NewStorage

func NewStorage(basePath string) FileStorage

func (FileStorage) IsExists

func (s FileStorage) IsExists(page *storage.Page) (bool, error)

func (FileStorage) PickRandom

func (s FileStorage) PickRandom(userName string) (*storage.Page, error)

func (FileStorage) Remove

func (s FileStorage) Remove(page *storage.Page) error

func (FileStorage) Save

func (s FileStorage) Save(page *storage.Page) error

Jump to

Keyboard shortcuts

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