domains

package
v1.6.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsDomain

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

func NewAccountsDomain

func NewAccountsDomain(logger *logrus.Logger, secretKey string, db database.DB) AccountsDomain

func (*AccountsDomain) CheckToken

func (d *AccountsDomain) CheckToken(ctx context.Context, userJWT string) (*model.Account, error)

func (*AccountsDomain) CreateTokenForAccount

func (d *AccountsDomain) CreateTokenForAccount(account *model.Account, expiration time.Time) (string, error)

func (*AccountsDomain) GetAccountFromCredentials

func (d *AccountsDomain) GetAccountFromCredentials(ctx context.Context, username, password string) (*model.Account, error)

type ArchiverDomain

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

func NewArchiverDomain

func NewArchiverDomain(logger *logrus.Logger, dataDir string) ArchiverDomain

func (*ArchiverDomain) DownloadBookmarkArchive

func (d *ArchiverDomain) DownloadBookmarkArchive(book model.Bookmark) (*model.Bookmark, error)

func (*ArchiverDomain) GetBookmarkArchive

func (d *ArchiverDomain) GetBookmarkArchive(book model.Bookmark) error

type JWTClaim

type JWTClaim struct {
	jwt.RegisteredClaims

	Account *model.Account
}

Jump to

Keyboard shortcuts

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