repository

package
v0.0.0-...-4f159c3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *sql.DB) *Repository

func (*Repository) DismissCallout

func (repo *Repository) DismissCallout(userId int64, featureName string)

func (*Repository) FindPost

func (repo *Repository) FindPost(postId int64) *objects.Post

func (*Repository) FindUser

func (repo *Repository) FindUser(userId int64) *objects.User

func (*Repository) SavePost

func (repo *Repository) SavePost(post *objects.Post)

func (*Repository) SaveUser

func (repo *Repository) SaveUser(user *objects.User)

func (*Repository) ShowCallout

func (repo *Repository) ShowCallout(userId int64, featureName string) bool

func (*Repository) UserIdsAround

func (repo *Repository) UserIdsAround(lon float64, lat float64) (userIds []int64)

func (*Repository) UserPostedRecently

func (repo *Repository) UserPostedRecently(userId int64) bool

Jump to

Keyboard shortcuts

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