memory

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Driver = &MemoryDriver{}
)

Functions

This section is empty.

Types

type MemoryDriver

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

func (*MemoryDriver) AddTemplate

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

func (*MemoryDriver) Close

func (d *MemoryDriver) Close(context.Context) error

func (*MemoryDriver) GetTemplate

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

func (*MemoryDriver) Init

func (d *MemoryDriver) Init(context.Context) error

func (*MemoryDriver) ListTemplates

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

func (*MemoryDriver) Prepare

func (d *MemoryDriver) Prepare() error

Jump to

Keyboard shortcuts

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