gorm3

package
v0.0.0-...-c37bf90 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	gorm.Model
	Rating      int
	RatingMarks int
}

User struct represents user model.

func GetUsersRegisteredToday

func GetUsersRegisteredToday(limit int) ([]User, error)

GetUsersRegisteredToday returns all users registered today

func GetUsersRegisteredTodayWithMaxRating

func GetUsersRegisteredTodayWithMaxRating(limit int) ([]User, error)

GetUsersRegisteredTodayWithMaxRating returns all users registered today with max rating

func GetUsersWithMaxRating

func GetUsersWithMaxRating(limit int) ([]User, error)

GetUsersWithMaxRating returns limit users with maximal rating

Jump to

Keyboard shortcuts

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