service

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

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

func NewUserService

func NewUserService(repo domain.TokenRepository) *UserService

func (*UserService) CreateToken

func (s *UserService) CreateToken(ctx context.Context, c *command.CreateToken) (*model.Token, error)

func (*UserService) DeleteToken

func (s *UserService) DeleteToken(ctx context.Context, c *command.DeleteToken) error

func (*UserService) ListTokens

func (s *UserService) ListTokens(ctx context.Context, q *query.ListTokens) ([]model.Token, error)

func (*UserService) ResetToken

func (s *UserService) ResetToken(ctx context.Context, c *command.ResetToken) (*model.Token, error)

TODO: Wrap with transactions.

func (*UserService) TokenDetails

func (s *UserService) TokenDetails(ctx context.Context, q *query.TokenDetails) (*model.Token, error)

Jump to

Keyboard shortcuts

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