service

package
v0.0.0-...-30dbe51 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AccountService

type AccountService struct {
	Auth auth.Auth
	// contains filtered or unexported fields
}

func NewAccountService

func NewAccountService(logger *zap.Logger, repo repository.AccountRepository, auth auth.Auth) *AccountService

func (*AccountService) Create

func (s *AccountService) Create(account *account.Account) (*account.Account, error)

func (*AccountService) Login

func (s *AccountService) Login(username, password string) (*schema.AccountTokenSchema, error)

func (*AccountService) RefreshToken

func (s *AccountService) RefreshToken()

Jump to

Keyboard shortcuts

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