tokenrepo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "push.toknenrepo"

Variables

View Source
var (
	ErrTokenExists = errors.New("token exists")
)

Functions

This section is empty.

Types

type TokenRepo

type TokenRepo interface {
	AddToken(ctx context.Context, token domain.Token) (err error)
	RevokeToken(ctx context.Context, accountId string, peerId string) error
	UpdateTokenStatus(ctx context.Context, tokenId string, status domain.TokenStatus) (err error)
	RemoveTokens(ctx context.Context, tokens []string) error
	GetActiveTokensByAccountIds(ctx context.Context, accountIds []string) (token []domain.Token, err error)
	app.ComponentRunnable
}

func New

func New() TokenRepo

Directories

Path Synopsis
Package mock_tokenrepo is a generated GoMock package.
Package mock_tokenrepo is a generated GoMock package.

Jump to

Keyboard shortcuts

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