Documentation ¶
Index ¶
- type Option
- type OptionEnum
- type Storage
- func (s *Storage) Create(newPayment storage.Payment) (uuid.UUID, error)
- func (s *Storage) CreateSpecificID(newID uuid.UUID, newPayment storage.Payment) error
- func (s *Storage) Delete(id uuid.UUID) error
- func (s *Storage) Initialise() error
- func (s *Storage) Read(id uuid.UUID) (storage.Payment, error)
- func (s *Storage) ReadAll(rao storage.ReadAllOptions) (map[uuid.UUID]storage.Payment, error)
- func (s *Storage) Terminate(drop ...bool) error
- func (s *Storage) Update(id uuid.UUID, p storage.Payment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { Key OptionEnum Value string }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a storage system backed by MongoDB that stores Payment structs indexed by UUID.
func (*Storage) CreateSpecificID ¶
func (*Storage) Initialise ¶
Click to show internal directories.
Click to hide internal directories.