Documentation ¶
Index ¶
- Variables
- type MemoryDriver
- func (d *MemoryDriver) AddTemplate(ctx context.Context, key *templates.TemplateKey, template interface{}) error
- func (d *MemoryDriver) Close(context.Context) error
- func (d *MemoryDriver) GetTemplate(ctx context.Context, key *templates.TemplateKey) (interface{}, error)
- func (d *MemoryDriver) Init(context.Context) error
- func (d *MemoryDriver) ListTemplates(ctx context.Context, ch chan *templates.TemplateKey) error
- func (d *MemoryDriver) Prepare() error
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) GetTemplate ¶
func (d *MemoryDriver) GetTemplate(ctx context.Context, key *templates.TemplateKey) (interface{}, error)
func (*MemoryDriver) ListTemplates ¶
func (d *MemoryDriver) ListTemplates(ctx context.Context, ch chan *templates.TemplateKey) error
func (*MemoryDriver) Prepare ¶
func (d *MemoryDriver) Prepare() error
Click to show internal directories.
Click to hide internal directories.