services

package
v0.0.0-...-51ca83e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// YFINURL            = "https://query1.finance.yahoo.com"
	YFINURL = "http://pokeapi.co/api/v2/pokedex/kanto/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StockService

type StockService struct {
	Store      stores.StockStore
	Validate   *validator.Validate
	HTTPClient *http.Client
}

func (StockService) Get

func (s StockService) Get(ctx context.Context) (err error)

type UserService

type UserService struct {
	Store    stores.UserStore
	Validate *validator.Validate
}

func (UserService) Create

func (s UserService) Create(ctx context.Context, user *models.User) (err error)

func (UserService) Delete

func (s UserService) Delete(ctx context.Context, userId xid.ID) error

func (UserService) Get

func (s UserService) Get(ctx context.Context, userId xid.ID, dst *models.User) error

func (UserService) GetByEmail

func (s UserService) GetByEmail(ctx context.Context, email string, dst *models.User) error

func (UserService) List

func (s UserService) List(ctx context.Context, set func(*models.User) error) (err error)

func (UserService) Put

func (s UserService) Put(ctx context.Context, user *models.User) error

func (UserService) SetPassword

func (s UserService) SetPassword(ctx context.Context, password string, userId xid.ID) (err error)

Jump to

Keyboard shortcuts

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