respository

package
v0.0.0-...-b98cd92 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(db *sql.DB) *Provider

func (*Provider) CreateImage

func (p *Provider) CreateImage(base64File, name string) (int64, error)

func (*Provider) CreateTask

func (p *Provider) CreateTask(title, description, status string, assignee int64) error

func (*Provider) CreateToken

func (p *Provider) CreateToken(userId int64, hash []byte, expiry time.Time) error

func (*Provider) CreateUser

func (p *Provider) CreateUser(email, name string, avatarId *int64, passwordHash []byte) error

func (*Provider) GetAllTasks

func (p *Provider) GetAllTasks(status string) ([]*domain.Task, error)

func (*Provider) GetImage

func (p *Provider) GetImage(id int64) (*string, *string, error)

func (*Provider) GetUser

func (p *Provider) GetUser(email string) (*domain.User, error)

func (*Provider) GetUserFromToken

func (p *Provider) GetUserFromToken(token []byte) (*domain.User, error)

Jump to

Keyboard shortcuts

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