repository

package
v0.0.0-...-6362154 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInexistentAccount  = errors.New("requested account does not exists")
	ErrPasswordsDontMatch = errors.New("passwords do not match")
)
View Source
var (
	ErrExistentAccount = errors.New("the requested account already exists")
)
View Source
var (
	ErrInvalidJwt = errors.New("invalid jwt")
)
View Source
var ErrNotDefaultAccount = errors.New("not a default account")

Functions

func ChangeInfo

func ChangeInfo(ctx context.Context, db *database.Db, access string, params user.ChangeInfoParams) (err error)

func GetFollows

func GetFollows(ctx context.Context, db *database.Db, access string, offset, limit int) (follows []string, err error)

func GetPublicInfo

func GetPublicInfo(ctx context.Context, db *database.Db, id string) (info user.PublicInfo, err error)

func LoginDefault

func LoginDefault(ctx context.Context, db *database.Db, params user.LoginDefaultParams) (sess session.Session, err error)

func LoginGoogle

func LoginGoogle(ctx context.Context, db *database.Db, credentials string) (sess session.Session, err error)

func RegisterDefault

func RegisterDefault(ctx context.Context, db *database.Db, params user.RegisterDefaultParams) (sess session.Session, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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