services

package
v0.0.0-...-1dea177 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
}

type S

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

func NewS

func NewS(db DB) *S

func (*S) AddProfile

func (s *S) AddProfile(userId string, profile *models.Profile) error

func (*S) Login

func (s *S) Login(username, password string) (token string, err error)

func (*S) Profile

func (s *S) Profile(userId string) (*models.Profile, error)

func (*S) Register

func (s *S) Register(username, password string) (token string, err error)

func (*S) UploadAvatar

func (s *S) UploadAvatar(userId string, avatar *os.File) error

func (*S) UserStatistics

func (s *S) UserStatistics() (userTotalCount, userDailyCount uint64, err error)

Jump to

Keyboard shortcuts

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