query

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll(s service.Service) []model.Message

GetAll gets data from db and checks some things

func GetCommentsTo

func GetCommentsTo(s service.Service, messageID string) []model.Message

func GetMessage

func GetMessage(s service.Service, id string) (model.Message, error)

func GetMessages

func GetMessages(s service.Service) []model.Message

GetMessages get data from db and checks some things

func GetMessagesFromAuthor

func GetMessagesFromAuthor(s service.Service, pubKeyBase64 string) []model.Message

func GetMostRecentComment

func GetMostRecentComment(s service.Service, messageID string) model.Message

func GetMostRecentMessage

func GetMostRecentMessage(s service.Service) model.Message

func NewMessage

func NewMessage(s service.Service, message model.Message) (model.Message, error)

NewMessage sanitizes, checks validity and eligibilty and saves the message to the database

func VerifyServerConstraints

func VerifyServerConstraints(s service.Service, message model.Message) error

func VerifyTiming

func VerifyTiming(s service.Service, message model.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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