Documentation ¶
Index ¶
- func Open(dir string) (*storm.DB, error)
- type ApplicationStorage
- func (s ApplicationStorage) Application(ctx context.Context, id string) (*mahi.Application, error)
- func (s ApplicationStorage) Applications(ctx context.Context, sinceID string, limit int) ([]*mahi.Application, error)
- func (s ApplicationStorage) Delete(ctx context.Context, id string) error
- func (s ApplicationStorage) Store(ctx context.Context, n *mahi.NewApplication) (*mahi.Application, error)
- func (s ApplicationStorage) Update(ctx context.Context, u *mahi.UpdateApplication) (*mahi.Application, error)
- type FileStorage
- func (s FileStorage) ApplicationFiles(ctx context.Context, applicationID, sinceID string, limit int) ([]*mahi.File, error)
- func (s *FileStorage) Delete(ctx context.Context, id string) error
- func (s *FileStorage) File(ctx context.Context, id string) (*mahi.File, error)
- func (s *FileStorage) FileByFileBlobID(ctx context.Context, fileBlobID string) (*mahi.File, error)
- func (s *FileStorage) Store(ctx context.Context, n *mahi.NewFile) (*mahi.File, error)
- type TransformStorage
- type UsageStorage
- func (s *UsageStorage) ApplicationUsages(ctx context.Context, applicationID string, startDate, endDate time.Time) ([]*mahi.Usage, error)
- func (s *UsageStorage) Store(ctx context.Context, n *mahi.NewUsage) (*mahi.Usage, error)
- func (s *UsageStorage) Update(ctx context.Context, u *mahi.UpdateUsage) (*mahi.Usage, error)
- func (s *UsageStorage) Usage(ctx context.Context, applicationID string, startDate, endDate time.Time) (*mahi.Usage, error)
- func (s *UsageStorage) Usages(ctx context.Context, startDate, endDate time.Time) ([]*mahi.TotalUsage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplicationStorage ¶
type ApplicationStorage struct {
DB *storm.DB
}
func (ApplicationStorage) Application ¶
func (s ApplicationStorage) Application(ctx context.Context, id string) (*mahi.Application, error)
func (ApplicationStorage) Applications ¶
func (s ApplicationStorage) Applications(ctx context.Context, sinceID string, limit int) ([]*mahi.Application, error)
func (ApplicationStorage) Delete ¶
func (s ApplicationStorage) Delete(ctx context.Context, id string) error
func (ApplicationStorage) Store ¶
func (s ApplicationStorage) Store(ctx context.Context, n *mahi.NewApplication) (*mahi.Application, error)
func (ApplicationStorage) Update ¶
func (s ApplicationStorage) Update(ctx context.Context, u *mahi.UpdateApplication) (*mahi.Application, error)
type FileStorage ¶
type FileStorage struct {
DB *storm.DB
}
func (FileStorage) ApplicationFiles ¶
func (*FileStorage) FileByFileBlobID ¶
type TransformStorage ¶
type TransformStorage struct {
DB *storm.DB
}
func (*TransformStorage) Store ¶
func (s *TransformStorage) Store(ctx context.Context, n *mahi.NewTransformation) (*mahi.Transformation, error)
type UsageStorage ¶
type UsageStorage struct {
DB *storm.DB
}
func (*UsageStorage) ApplicationUsages ¶
func (*UsageStorage) Update ¶
func (s *UsageStorage) Update(ctx context.Context, u *mahi.UpdateUsage) (*mahi.Usage, error)
func (*UsageStorage) Usages ¶
func (s *UsageStorage) Usages(ctx context.Context, startDate, endDate time.Time) ([]*mahi.TotalUsage, error)
Click to show internal directories.
Click to hide internal directories.