bolt

package
v0.0.0-...-6421233 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dir string) (*storm.DB, error)

Types

type ApplicationStorage

type ApplicationStorage struct {
	DB *storm.DB
}

func (ApplicationStorage) Application

func (s ApplicationStorage) Application(ctx context.Context, id string) (*gisvs.Application, error)

func (ApplicationStorage) Applications

func (s ApplicationStorage) Applications(ctx context.Context, sinceID string, limit int) ([]*gisvs.Application, error)

func (ApplicationStorage) Delete

func (s ApplicationStorage) Delete(ctx context.Context, id string) error

func (ApplicationStorage) Store

func (ApplicationStorage) Update

type FileStorage

type FileStorage struct {
	DB *storm.DB
}

func (FileStorage) ApplicationFiles

func (s FileStorage) ApplicationFiles(ctx context.Context, applicationID, sinceID string, limit int) ([]*gisvs.File, error)

func (*FileStorage) Delete

func (s *FileStorage) Delete(ctx context.Context, id string) error

func (*FileStorage) File

func (s *FileStorage) File(ctx context.Context, id string) (*gisvs.File, error)

func (*FileStorage) FileByFileBlobID

func (s *FileStorage) FileByFileBlobID(ctx context.Context, fileBlobID string) (*gisvs.File, error)

func (*FileStorage) Store

func (s *FileStorage) Store(ctx context.Context, n *gisvs.NewFile) (*gisvs.File, error)

type TransformStorage

type TransformStorage struct {
	DB *storm.DB
}

func (*TransformStorage) Store

type UsageStorage

type UsageStorage struct {
	DB *storm.DB
}

func (*UsageStorage) ApplicationUsages

func (s *UsageStorage) ApplicationUsages(ctx context.Context, applicationID string, startDate, endDate time.Time) ([]*gisvs.Usage, error)

func (*UsageStorage) Store

func (s *UsageStorage) Store(ctx context.Context, n *gisvs.NewUsage) (*gisvs.Usage, error)

func (*UsageStorage) Update

func (s *UsageStorage) Update(ctx context.Context, u *gisvs.UpdateUsage) (*gisvs.Usage, error)

func (*UsageStorage) Usage

func (s *UsageStorage) Usage(ctx context.Context, applicationID string, startDate, endDate time.Time) (*gisvs.Usage, error)

func (*UsageStorage) Usages

func (s *UsageStorage) Usages(ctx context.Context, startDate, endDate time.Time) ([]*gisvs.TotalUsage, error)

Jump to

Keyboard shortcuts

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