storage

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 9 Imported by: 1

README

Leaflet Generator Storage

TODO

Documentation

Index

Constants

View Source
const PackageName string = "storage"

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func Get

func Get(ctx context.Context, client *mongo.Client) (*Storage, error)

func (*Storage) CreateTask

func (s *Storage) CreateTask(ctx context.Context, task *model.Task) error

func (*Storage) CreateTasks

func (s *Storage) CreateTasks(ctx context.Context, tasks []*model.Task) error

func (*Storage) CreateTemplate

func (s *Storage) CreateTemplate(ctx context.Context, template *model.Template) error

func (*Storage) CreateTemplates

func (s *Storage) CreateTemplates(ctx context.Context, templates []*model.Template) error

func (*Storage) ReadTaskByID

func (s *Storage) ReadTaskByID(ctx context.Context, id string) (*model.Task, error)

func (*Storage) ReadTasksByIDs added in v0.0.3

func (s *Storage) ReadTasksByIDs(ctx context.Context, ids []string) ([]*model.Task, error)

func (*Storage) ReadTemplateByID

func (s *Storage) ReadTemplateByID(ctx context.Context, id string) (*model.Template, error)

func (*Storage) ReadTemplateByName added in v0.0.5

func (s *Storage) ReadTemplateByName(ctx context.Context, name string) (*model.Template, error)

func (*Storage) ReadTemplatesByIDs added in v0.0.3

func (s *Storage) ReadTemplatesByIDs(ctx context.Context, ids []string) ([]*model.Template, error)

Jump to

Keyboard shortcuts

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