Documentation
¶
Index ¶
- Variables
- func AddFileToS3(s *session.Session, fileDir string) error
- type Abstract
- func (a Abstract) SelectLabel() string
- func (a Abstract) SelectValue() interface{}
- func (a Abstract) String() string
- func (a *Abstract) Validate(tx *pop.Connection) (*validate.Errors, error)
- func (a *Abstract) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)
- func (a *Abstract) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)
- type Abstracts
- type Dutonian
- func (d *Dutonian) AfterCreate(tx *pop.Connection) error
- func (d *Dutonian) AfterUpdate(tx *pop.Connection) error
- func (d Dutonian) SelectLabel() string
- func (d Dutonian) SelectValue() interface{}
- func (d Dutonian) String() string
- func (d *Dutonian) Validate(tx *pop.Connection) (*validate.Errors, error)
- func (d *Dutonian) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)
- func (d *Dutonian) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)
- type Dutonians
- type Event
- func (e *Event) AfterCreate(tx *pop.Connection) error
- func (e *Event) AfterUpdate(tx *pop.Connection) error
- func (e Event) SelectLabel() string
- func (e Event) SelectValue() interface{}
- func (e Event) String() string
- func (e *Event) Validate(tx *pop.Connection) (*validate.Errors, error)
- func (e *Event) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)
- func (e *Event) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)
- type Events
- type Link
- type Links
- type Proposal
- type Proposals
- type Sponsorship
- type Sponsorships
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
var DB *pop.Connection
DB is a connection to your database to be used throughout your application.
Functions ¶
Types ¶
type Abstract ¶
type Abstract struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
UpdatedBy uuid.UUID `json:"updated_by" db:"updated_by"`
Title string `json:"title" db:"title"`
OneSentenceDescription nulls.String `json:"one_sentence_description" db:"one_sentence_description"`
ShortDescription nulls.String `json:"short_description" db:"short_description"`
Abstract string `json:"abstract" db:"abstract"`
TalkType nulls.String `json:"talk_type" db:"talk_type"`
}
func (Abstract) SelectLabel ¶
SelectLabel - label for select tag options
func (Abstract) SelectValue ¶
func (a Abstract) SelectValue() interface{}
SelectValue - value for select tag options
func (*Abstract) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Abstract) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Abstract) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type Dutonian ¶
type Dutonian struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
UpdatedBy uuid.UUID `json:"updated_by" db:"updated_by"`
Firstname string `json:"firstname" db:"firstname"`
Lastname string `json:"lastname" db:"lastname"`
Bio nulls.String `json:"bio" db:"bio"`
Twitter nulls.String `json:"twitter" db:"twitter"`
Github nulls.String `json:"github" db:"github"`
Homepage nulls.String `json:"homepage" db:"homepage"`
Photo binding.File `db:"-"`
PhotoName string `json:"photo_name" db:"photo_name"`
}
func (*Dutonian) AfterCreate ¶
func (d *Dutonian) AfterCreate(tx *pop.Connection) error
func (*Dutonian) AfterUpdate ¶
func (d *Dutonian) AfterUpdate(tx *pop.Connection) error
func (Dutonian) SelectLabel ¶
SelectLabel - label for select tag options
func (Dutonian) SelectValue ¶
func (d Dutonian) SelectValue() interface{}
SelectValue - value for select tag options
func (*Dutonian) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Dutonian) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Dutonian) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type Event ¶
type Event struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
UpdatedBy uuid.UUID `json:"updated_by" db:"updated_by"`
Title string `json:"title" db:"title"`
EventBeginDate time.Time `json:"event_begin_date" db:"event_begin_date"`
EventEndDate time.Time `json:"event_end_date" db:"event_end_date"`
CfpBeginDate time.Time `json:"cfp_begin_date" db:"cfp_begin_date"`
CfpEndDate time.Time `json:"cfp_end_date" db:"cfp_end_date"`
Location nulls.String `json:"location" db:"location"`
HomePage nulls.String `json:"home_page" db:"home_page"`
SchedulePage nulls.String `json:"schedule_page" db:"schedule_page"`
SponsorPage nulls.String `json:"sponsor_page" db:"sponsor_page"`
CfpPage nulls.String `json:"cfp_page" db:"cfp_page"`
RegistrationPage nulls.String `json:"registration_page" db:"registration_page"`
EventReport nulls.String `json:"event_report" db:"event_report"`
Attendance nulls.Int `json:"attendance" db:"attendance"`
Logo binding.File `db:"-"`
LogoName string `json:"logo_name" db:"logo_name"`
Proposals Proposals `has_many:"proposals" order_by:"created_at asc"`
Sponsorships Sponsorships `has_many:"sponsorships" order_by:"created_at asc"`
}
func (*Event) AfterCreate ¶
func (e *Event) AfterCreate(tx *pop.Connection) error
func (*Event) AfterUpdate ¶
func (e *Event) AfterUpdate(tx *pop.Connection) error
func (Event) SelectLabel ¶
SelectLabel - label for select tag options
func (Event) SelectValue ¶
func (e Event) SelectValue() interface{}
SelectValue - value for select tag options
func (*Event) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Event) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Event) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type Link ¶
type Link struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
Name string `json:"name" db:"name"`
Url string `json:"url" db:"url"`
Description nulls.String `json:"description" db:"description"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
UpdatedBy uuid.UUID `json:"updated_by" db:"updated_by"`
}
func (*Link) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Link) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Link) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type Proposal ¶
type Proposal struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
UpdatedBy uuid.UUID `json:"updated_by" db:"updated_by"`
SpeakerID uuid.UUID `json:"speaker_id" db:"speaker_id"`
AbstractID uuid.UUID `json:"abstract_id" db:"abstract_id"`
EventID uuid.UUID `json:"event_id" db:"event_id"`
Status string `json:"status" db:"status"`
}
func (*Proposal) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Proposal) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Proposal) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type Sponsorship ¶
type Sponsorship struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
EventID uuid.UUID `json:"event_id" db:"event_id"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
UpdatedBy uuid.UUID `json:"updated_by" db:"updated_by"`
Status string `json:"status" db:"status"`
Type nulls.String `json:"type" db:"type"`
Benefits nulls.String `json:"benefits" db:"benefits"`
Costs nulls.Int `json:"costs" db:"costs"`
BudgetQuarter nulls.String `json:"budget_quarter" db:"budget_quarter"`
SponsorContactName nulls.String `json:"sponsor_contact_name" db:"sponsor_contact_name"`
SponsorContactEmail nulls.String `json:"sponsor_contact_email" db:"sponsor_contact_email"`
SponsorContactPhone nulls.String `json:"sponsor_contact_phone" db:"sponsor_contact_phone"`
Staff nulls.String `json:"staff" db:"staff"`
RegistrationCode nulls.String `json:"registration_code" db:"registration_code"`
Notes nulls.String `json:"notes" db:"notes"`
}
func (Sponsorship) String ¶
func (s Sponsorship) String() string
String is not required by pop and may be deleted
func (*Sponsorship) Validate ¶
func (s *Sponsorship) Validate(tx *pop.Connection) (*validate.Errors, error)
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Sponsorship) ValidateCreate ¶
func (s *Sponsorship) ValidateCreate(tx *pop.Connection) (*validate.Errors, error)
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Sponsorship) ValidateUpdate ¶
func (s *Sponsorship) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error)
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type Sponsorships ¶
type Sponsorships []Sponsorship
Sponsorships is not required by pop and may be deleted
func (Sponsorships) String ¶
func (s Sponsorships) String() string
String is not required by pop and may be deleted
type User ¶
type User struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
Name string `json:"name" db:"name"`
Email nulls.String `json:"email" db:"email"`
Provider string `json:"provider" db:"provider"`
ProviderID string `json:"provider_id" db:"provider_id"`
}
func (*User) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*User) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*User) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.