Documentation
¶
Index ¶
- Variables
- type Store
- func (str *Store) CreateRecord(ctx context.Context, record *model.Record) error
- func (str *Store) GetCountOfRecords(ctx context.Context) (res int64, err error)
- func (str *Store) GetRecord(ctx context.Context, id int64) (rec *model.Record, err error)
- func (str *Store) GetUserRecords(ctx context.Context, user string) ([]model.UsersRecord, error)
- func (str *Store) GetUsers(ctx context.Context) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilReference = errors.New("unexpectedly got nil reference in storage")
)
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is postgres storage.
func (*Store) CreateRecord ¶
func (*Store) GetCountOfRecords ¶
func (*Store) GetUserRecords ¶
Click to show internal directories.
Click to hide internal directories.