fs

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	Path string // without left / (slash) or . (dot) or @
	FS   fs.FS
	Info fs.FileInfo
}

func (Template) ID

func (t Template) ID() int64

func (Template) Model

func (t Template) Model() (model.Template, error)

func (Template) Name

func (t Template) Name() string

type TemplateRepository

type TemplateRepository struct {
	repository.Template
	// contains filtered or unexported fields
}

func NewTemplateRepository

func NewTemplateRepository(inner repository.Template, fsys fs.FS, ext ...string) *TemplateRepository

func (*TemplateRepository) Find

func (r *TemplateRepository) Find(ctx context.Context, criteria *cr.Criteria) ([]model.Template, error)

func (*TemplateRepository) FindAndCount

func (r *TemplateRepository) FindAndCount(ctx context.Context, criteria *cr.Criteria) ([]model.Template, int, error)

func (*TemplateRepository) FindByID

func (r *TemplateRepository) FindByID(ctx context.Context, id int64) (model.Template, error)

func (*TemplateRepository) FindByName

func (r *TemplateRepository) FindByName(ctx context.Context, name string) (model.Template, error)

Jump to

Keyboard shortcuts

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