models

package
v0.0.0-...-dae64eb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	ID   int64
	Area string
	Slug string
}

Area is the meeting's area

func (Area) String

func (a Area) String() string

GetName of an area, generic interface for the template

func (Area) TableName

func (Area) TableName() string

TableName of Area

type Code

type Code struct {
	ID          int64
	Code        string
	Description string
}

Code is a Meeting code or Meeting Type

func (Code) TableName

func (Code) TableName() string

TableName of CodeOrType

type Location

type Location struct {
	ID int64

	ZipCode       *string
	AddressString string
	// Lat           float64
	// Lng           float64
	// Location      int64 `kallax:"-"`
	Location pqtype.PostGISPoint
	// contains filtered or unexported fields
}

Location is where a meeting is held

func (*Location) BeforeSave

func (l *Location) BeforeSave() (err error)

BeforeSave on the location to geolocate the request

func (Location) String

func (l Location) String() string

GetName of an area, generic interface for the template

func (Location) TableName

func (Location) TableName() string

TableName of Location

type Meeting

type Meeting struct {
	ID   int64
	Name string
	Time time.Time
	// URL          url.URL
	URL          string
	Area         Area `gorm:"auto_preload"`
	AreaID       sql.NullInt64
	Location     Location `gorm:"auto_preload"`
	LocationID   sql.NullInt64
	OrigFilename string
	RowSrc       string
	Notes        string
	Codes        []Code `` /* 167-byte string literal not displayed */
	Types        []Type `` /* 167-byte string literal not displayed */
}

Meeting is the main thing

func (Meeting) TableName

func (Meeting) TableName() string

TableName of Meeting

type Type

type Type struct {
	ID   int64
	Type string
	Slug string
}

Type is a Meeting code or Meeting Type

func (Type) TableName

func (Type) TableName() string

TableName of CodeOrType

type VirtualMeeting

type VirtualMeeting struct {
	ID            int64
	Name          string
	Time          time.Time
	URL           string
	Area          string
	AreaSlug      string
	LocationID    sql.NullInt64
	AddressString string
	Location      pqtype.PostGISPoint
	Notes         string
	Day           string
	Codes         []Code `` /* 167-byte string literal not displayed */
	Types         []Type `` /* 167-byte string literal not displayed */
}

VirtualMeeting Table

func (VirtualMeeting) QueryNoDay

func (VirtualMeeting) QueryNoDay(conn *gorm.DB) *gorm.DB

QueryNoDay Creates the query base to generate a VirtualMeeting, without a day

func (VirtualMeeting) QueryWithDay

func (VirtualMeeting) QueryWithDay(conn *gorm.DB) *gorm.DB

QueryWithDay Creates the query base to generate a VirtualMeeting

func (VirtualMeeting) TableName

func (VirtualMeeting) TableName() string

TableName of Meeting

Jump to

Keyboard shortcuts

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