gorm1

package
v0.0.0-...-36aee76 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 2 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 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