service

package
v0.0.0-...-2771b56 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(repo *repository.Repository) *Service

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, username, password string) error

func (*Service) GenerateToken

func (s *Service) GenerateToken(ctx context.Context, username, password string) (string, error)

func (*Service) GetUser

func (s *Service) GetUser(ctx context.Context, username, password string) (*model.User, error)

func (*Service) ParseToken

func (s *Service) ParseToken(accessToken string) (string, error)

Jump to

Keyboard shortcuts

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