help

package
v0.0.0-...-670d40f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHelp

func CreateHelp(db *clover.DB, help Help) error

func DeleteHelpById

func DeleteHelpById(db *clover.DB, helpId string) error

func UpdateHelp

func UpdateHelp(db *clover.DB, help Help) error

Types

type Help

type Help struct {
	Id                   string              `json:"_id" clover:"_id"`
	MapObject            mapobject.MapObject `json:"map_object" clover:"map_object"`
	ContactInfos         string              `json:"contact_infos" clover:"contact_infos"`
	NeedHelp             bool                `json:"need_help" clover:"need_help"`
	HowToHelp            string              `json:"how_to_help" clover:"how_to_help"`
	HowToUseHelp         string              `json:"how_to_use_help" clover:"how_to_use_help"`
	EventId              string              `json:"event_id" clover:"event_id"`
	Exported             bool                `json:"exported" clover:"exported"`
	Modified             bool                `json:"modified" clover:"modified"`
	DerniereModification time.Time           `json:"derniere_modification" clover:"derniere_modification"`
}

func GetAllHelps

func GetAllHelps(db *clover.DB) ([]*Help, error)

func GetAllHelpsByAccountId

func GetAllHelpsByAccountId(db *clover.DB, accountId string) ([]*Help, error)

func GetHelpById

func GetHelpById(db *clover.DB, helpId string) (Help, error)

func GetHelpFromDocuments

func GetHelpFromDocuments(docs []*document.Document) ([]*Help, error)

func GetHelpWithFilters

func GetHelpWithFilters(conn *clover.DB, filters map[string][]string, requireGeoJson bool) ([]*Help, error)

func SearchHelps

func SearchHelps(conn *clover.DB, filters map[string][]string, requireGeoJson bool) ([]*Help, error)

func (*Help) FlipCoords

func (help *Help) FlipCoords()

func (*Help) GetModificationDateString

func (m *Help) GetModificationDateString() string

Jump to

Keyboard shortcuts

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