repository

package
v0.0.0-...-c394503 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 NewAccount(db DB) Account

func (Account) Create

func (r Account) Create(ctx context.Context, account models.EntireAccount) (string, error)

func (Account) Delete

func (r Account) Delete(ctx context.Context, id string) error

func (Account) List

func (r Account) List(ctx context.Context) ([]models.Account, error)

func (Account) Read

func (r Account) Read(ctx context.Context, id string) (models.EntireAccount, error)

func (Account) Update

type DB

type DB struct {
	// contains filtered or unexported fields
}

func NewMongoDB

func NewMongoDB(ctx context.Context, cfg models.MongoConfig) (DB, error)

func (DB) Close

func (r DB) Close() 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 (SecureNote) Update

type User

type User struct {
	// contains filtered or unexported fields
}

func NewUser

func NewUser(db DB) User

func (User) Create

func (r User) Create(ctx context.Context, user models.User) (string, error)

func (User) Delete

func (r User) Delete(ctx context.Context, id string) error

func (User) List

func (r User) List(ctx context.Context) ([]models.User, error)

func (User) Read

func (r User) Read(ctx context.Context, id string) (models.User, error)

func (User) Update

func (r User) Update(ctx context.Context, user models.User) (models.User, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL