Documentation ¶
Index ¶
- type LocalStorage
- func (storage *LocalStorage) DeleteAll() error
- func (storage *LocalStorage) DeleteDraft(ctx goContext.Context, id string) error
- func (storage *LocalStorage) DeleteInvoice(ctx goContext.Context, id string) error
- func (storage *LocalStorage) DeleteVisualization(ctx goContext.Context, id string) error
- func (storage *LocalStorage) GetDraft(ctx goContext.Context, id string) ([]byte, error)
- func (storage *LocalStorage) GetInvoice(ctx goContext.Context, id string) ([]byte, error)
- func (storage *LocalStorage) GetVisualization(ctx goContext.Context, id string) ([]byte, error)
- func (storage *LocalStorage) SaveDraft(ctx goContext.Context, id string, value []byte) error
- func (storage *LocalStorage) SaveInvoice(ctx goContext.Context, id string, value []byte) error
- func (storage *LocalStorage) SaveVisualization(ctx goContext.Context, id string, value []byte) error
- type NotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
func New ¶
func New(basePath string) *LocalStorage
func (*LocalStorage) DeleteAll ¶
func (storage *LocalStorage) DeleteAll() error
func (*LocalStorage) DeleteDraft ¶
func (storage *LocalStorage) DeleteDraft(ctx goContext.Context, id string) error
func (*LocalStorage) DeleteInvoice ¶
func (storage *LocalStorage) DeleteInvoice(ctx goContext.Context, id string) error
func (*LocalStorage) DeleteVisualization ¶
func (storage *LocalStorage) DeleteVisualization(ctx goContext.Context, id string) error
func (*LocalStorage) GetInvoice ¶
func (*LocalStorage) GetVisualization ¶
func (*LocalStorage) SaveInvoice ¶
func (*LocalStorage) SaveVisualization ¶
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.