Documentation ¶
Index ¶
- type Account
- func (r Account) Create(ctx context.Context, account models.EntireAccount) (string, error)
- func (r Account) Delete(ctx context.Context, id string) error
- func (r Account) List(ctx context.Context) ([]models.Account, error)
- func (r Account) Read(ctx context.Context, id string) (models.EntireAccount, error)
- func (r Account) Update(ctx context.Context, account models.EntireAccount) (models.EntireAccount, error)
- type DB
- type SecureNote
- func (r SecureNote) Create(ctx context.Context, secureNote models.EntireSecureNote) (string, error)
- func (r SecureNote) Delete(ctx context.Context, id string) error
- func (r SecureNote) List(ctx context.Context) ([]models.SecureNote, error)
- func (r SecureNote) Read(ctx context.Context, id string) (models.EntireSecureNote, error)
- func (r SecureNote) Update(ctx context.Context, secureNote models.EntireSecureNote) (models.EntireSecureNote, error)
- type User
- func (r User) Create(ctx context.Context, user models.User) (string, error)
- func (r User) Delete(ctx context.Context, id string) error
- func (r User) List(ctx context.Context) ([]models.User, error)
- func (r User) Read(ctx context.Context, id string) (models.User, error)
- func (r User) Update(ctx context.Context, user models.User) (models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func (Account) Update ¶
func (r Account) Update(ctx context.Context, account models.EntireAccount) (models.EntireAccount, error)
type SecureNote ¶
type SecureNote struct {
// contains filtered or unexported fields
}
func NewSecureNote ¶
func NewSecureNote(db DB) SecureNote
func (SecureNote) Create ¶
func (r SecureNote) Create(ctx context.Context, secureNote models.EntireSecureNote) (string, error)
func (SecureNote) List ¶
func (r SecureNote) List(ctx context.Context) ([]models.SecureNote, error)
func (SecureNote) Read ¶
func (r SecureNote) Read(ctx context.Context, id string) (models.EntireSecureNote, error)
func (SecureNote) Update ¶
func (r SecureNote) Update(ctx context.Context, secureNote models.EntireSecureNote) (models.EntireSecureNote, error)
Click to show internal directories.
Click to hide internal directories.