file

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDriver

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

func (*FileDriver) AddTemplate

func (d *FileDriver) AddTemplate(ctx context.Context, key *templates.TemplateKey, template interface{}) error

func (*FileDriver) Close

func (d *FileDriver) Close(ctx context.Context) error

func (*FileDriver) GetTemplate

func (d *FileDriver) GetTemplate(ctx context.Context, key *templates.TemplateKey) (interface{}, error)

func (*FileDriver) Init

func (d *FileDriver) Init(ctx context.Context) error

func (*FileDriver) ListTemplates

func (d *FileDriver) ListTemplates(ctx context.Context, ch chan *templates.TemplateKey) error

func (*FileDriver) Prepare

func (d *FileDriver) Prepare() error

type TemplateFile

type TemplateFile struct {
	Templates []*TemplateFileObject `json:"templates"`
}

func NewTemplateFile

func NewTemplateFile() *TemplateFile

func (*TemplateFile) Add

func (f *TemplateFile) Add(key *templates.TemplateKey, data interface{})

type TemplateFileData

type TemplateFileData struct {
	Type string
	Data interface{}
}

func (*TemplateFileData) UnmarshalJSON

func (d *TemplateFileData) UnmarshalJSON(b []byte) error

type TemplateFileObject

type TemplateFileObject struct {
	Key  *templates.TemplateKey
	Data *TemplateFileData
}

Jump to

Keyboard shortcuts

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