usecase

package
v0.0.0-...-f28b492 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 4 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(repo accountRepository) Account

func (Account) Create

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

func (Account) Delete

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

func (Account) List

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

func (Account) Read

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

func (Account) Update

type SecureNote

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

func NewSecureNote

func NewSecureNote(repo secureNoteRepository) SecureNote

func (SecureNote) Create

func (u SecureNote) Create(ctx context.Context, secureNote models.EntireSecureNote) (string, error)

func (SecureNote) Delete

func (u SecureNote) Delete(ctx context.Context, id string) error

func (SecureNote) List

func (u 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(repo userRepository) User

func (User) Create

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

func (User) Delete

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

func (User) List

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

func (User) Read

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

func (User) Update

func (u 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