model

package
v0.0.0-...-18b278e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package model contains objects that are used to pass data to the outside world. `service` objects and `db` objects do not marshal/unmarshal to JSON or urlenc.

Index

Constants

View Source
const (
	StatusPending  = "pending"
	StatusAccepted = "accepted"
	StatusRejected = "rejected"
	StatusPublic   = "public"
	StatusPrivate  = "private"
)

Variables

View Source
var ErrInvalidConferenceHour = errors.New("invalid conference hour specification")

Functions

func ExtractL10NFields

func ExtractL10NFields(m map[string]interface{}, lf *LocalizedFields, keys []string) error

func MarshalJSONWithL10N

func MarshalJSONWithL10N(buf []byte, lf LocalizedFields) (ret []byte, err error)

func MarshalURLWithL10N

func MarshalURLWithL10N(buf []byte, lf LocalizedFields) ([]byte, error)

Types

type AddConferenceAdminRequest

type AddConferenceAdminRequest struct {
	ConferenceID string `json:"conference_id"`
	AdminID      string `json:"admin_id"`
}

+transport

func (AddConferenceAdminRequest) MarshalJSON

func (r AddConferenceAdminRequest) MarshalJSON() ([]byte, error)

func (AddConferenceAdminRequest) MarshalURL

func (r AddConferenceAdminRequest) MarshalURL() ([]byte, error)

func (*AddConferenceAdminRequest) Populate

func (r *AddConferenceAdminRequest) Populate(m map[string]interface{}) error

func (*AddConferenceAdminRequest) UnmarshalJSON

func (r *AddConferenceAdminRequest) UnmarshalJSON(data []byte) error

type AddConferenceCredentialRequest

type AddConferenceCredentialRequest struct {
	ConferenceID string `json:"conference_id"`
	Type         string `json:"type"`
	Data         string `json:"data"`
}

+transport

func (AddConferenceCredentialRequest) MarshalJSON

func (r AddConferenceCredentialRequest) MarshalJSON() ([]byte, error)

func (AddConferenceCredentialRequest) MarshalURL

func (r AddConferenceCredentialRequest) MarshalURL() ([]byte, error)

func (*AddConferenceCredentialRequest) Populate

func (r *AddConferenceCredentialRequest) Populate(m map[string]interface{}) error

func (*AddConferenceCredentialRequest) UnmarshalJSON

func (r *AddConferenceCredentialRequest) UnmarshalJSON(data []byte) error

type AddConferenceSeriesAdminRequest

type AddConferenceSeriesAdminRequest struct {
	SeriesID string `json:"series_id"`
	AdminID  string `json:"admin_id"` // new ID to add
}

+transport

func (AddConferenceSeriesAdminRequest) MarshalJSON

func (r AddConferenceSeriesAdminRequest) MarshalJSON() ([]byte, error)

func (AddConferenceSeriesAdminRequest) MarshalURL

func (r AddConferenceSeriesAdminRequest) MarshalURL() ([]byte, error)

func (*AddConferenceSeriesAdminRequest) Populate

func (r *AddConferenceSeriesAdminRequest) Populate(m map[string]interface{}) error

func (*AddConferenceSeriesAdminRequest) UnmarshalJSON

func (r *AddConferenceSeriesAdminRequest) UnmarshalJSON(data []byte) error

type AddConferenceStaffRequest

type AddConferenceStaffRequest struct {
	ConferenceID string `json:"conference_id"`
	StaffID      string `json:"staff_id"`
}

+transport

func (AddConferenceStaffRequest) MarshalJSON

func (r AddConferenceStaffRequest) MarshalJSON() ([]byte, error)

func (AddConferenceStaffRequest) MarshalURL

func (r AddConferenceStaffRequest) MarshalURL() ([]byte, error)

func (*AddConferenceStaffRequest) Populate

func (r *AddConferenceStaffRequest) Populate(m map[string]interface{}) error

func (*AddConferenceStaffRequest) UnmarshalJSON

func (r *AddConferenceStaffRequest) UnmarshalJSON(data []byte) error

type AddConferenceVenueRequest

type AddConferenceVenueRequest struct {
	ConferenceID    string            `json:"conference_id"`
	VenueID         string            `json:"venue_id"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (AddConferenceVenueRequest) MarshalJSON

func (r AddConferenceVenueRequest) MarshalJSON() ([]byte, error)

func (AddConferenceVenueRequest) MarshalURL

func (r AddConferenceVenueRequest) MarshalURL() ([]byte, error)

func (*AddConferenceVenueRequest) Populate

func (r *AddConferenceVenueRequest) Populate(m map[string]interface{}) error

func (*AddConferenceVenueRequest) UnmarshalJSON

func (r *AddConferenceVenueRequest) UnmarshalJSON(data []byte) error

type AddFeaturedSpeakerRequest

type AddFeaturedSpeakerRequest struct {
	ConferenceID    string            `json:"conference_id"`
	SpeakerID       jsval.MaybeString `json:"speaker_id"`
	AvatarURL       jsval.MaybeString `json:"avatar_url"`
	DisplayName     string            `json:"display_name" l10n:"true"`
	Description     string            `json:"description" l10n:"true"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (*AddFeaturedSpeakerRequest) GetPropNames

func (r *AddFeaturedSpeakerRequest) GetPropNames() ([]string, error)

func (AddFeaturedSpeakerRequest) MarshalJSON

func (r AddFeaturedSpeakerRequest) MarshalJSON() ([]byte, error)

func (AddFeaturedSpeakerRequest) MarshalURL

func (r AddFeaturedSpeakerRequest) MarshalURL() ([]byte, error)

func (*AddFeaturedSpeakerRequest) Populate

func (r *AddFeaturedSpeakerRequest) Populate(m map[string]interface{}) error

func (*AddFeaturedSpeakerRequest) SetPropValue

func (r *AddFeaturedSpeakerRequest) SetPropValue(s string, v interface{}) error

func (*AddFeaturedSpeakerRequest) UnmarshalJSON

func (r *AddFeaturedSpeakerRequest) UnmarshalJSON(data []byte) error

type AddSessionTypeRequest

type AddSessionTypeRequest struct {
	ConferenceID    string            `json:"conference_id"`
	Name            string            `json:"name"`
	Abstract        string            `json:"abstract"`
	Duration        int               `json:"duration"`
	SubmissionStart jsval.MaybeString `json:"submission_start,omitempty"`
	SubmissionEnd   jsval.MaybeString `json:"submission_end,omitempty"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (AddSessionTypeRequest) MarshalJSON

func (r AddSessionTypeRequest) MarshalJSON() ([]byte, error)

func (AddSessionTypeRequest) MarshalURL

func (r AddSessionTypeRequest) MarshalURL() ([]byte, error)

func (*AddSessionTypeRequest) Populate

func (r *AddSessionTypeRequest) Populate(m map[string]interface{}) error

func (*AddSessionTypeRequest) UnmarshalJSON

func (r *AddSessionTypeRequest) UnmarshalJSON(data []byte) error

type AddSponsorRequest

type AddSponsorRequest struct {
	ConferenceID    string            `json:"conference_id"`
	Name            string            `json:"name" l10n:"true"`
	URL             string            `json:"url"`
	LogoURL         jsval.MaybeString `json:"logo_url"`
	GroupName       string            `json:"group_name"`
	SortOrder       int               `json:"sort_order"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (*AddSponsorRequest) GetPropNames

func (r *AddSponsorRequest) GetPropNames() ([]string, error)

func (AddSponsorRequest) MarshalJSON

func (r AddSponsorRequest) MarshalJSON() ([]byte, error)

func (AddSponsorRequest) MarshalURL

func (r AddSponsorRequest) MarshalURL() ([]byte, error)

func (*AddSponsorRequest) Populate

func (r *AddSponsorRequest) Populate(m map[string]interface{}) error

func (*AddSponsorRequest) SetPropValue

func (r *AddSponsorRequest) SetPropValue(s string, v interface{}) error

func (*AddSponsorRequest) UnmarshalJSON

func (r *AddSponsorRequest) UnmarshalJSON(data []byte) error

type AddVenueRoomRequest

type AddVenueRoomRequest struct {
	VenueID         string            `json:"venue_id"`
	RoomID          string            `json:"room_id"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (AddVenueRoomRequest) MarshalJSON

func (r AddVenueRoomRequest) MarshalJSON() ([]byte, error)

func (AddVenueRoomRequest) MarshalURL

func (r AddVenueRoomRequest) MarshalURL() ([]byte, error)

func (*AddVenueRoomRequest) Populate

func (r *AddVenueRoomRequest) Populate(m map[string]interface{}) error

func (*AddVenueRoomRequest) UnmarshalJSON

func (r *AddVenueRoomRequest) UnmarshalJSON(data []byte) error

type BlogEntry

type BlogEntry struct {
	ID           string `json:"id"`
	ConferenceID string `json:"conference_id,omitempty"`
	Status       string `json:"status,omitempty"`
	Title        string `json:"title"`
	URL          string `json:"url"`
	URLHash      string `json:"status,omitempty"`
}

+model

func (*BlogEntry) FromRow

func (v *BlogEntry) FromRow(vdb *db.BlogEntry) error

func (*BlogEntry) Load

func (v *BlogEntry) Load(tx *sql.Tx, id string) (err error)

func (*BlogEntry) ToRow

func (v *BlogEntry) ToRow(vdb *db.BlogEntry) error

type BlogEntryList

type BlogEntryList []BlogEntry

type Client

type Client struct {
	ID     string `json:"id"`
	Secret string `json:"secret"`
	Name   string `json:"name"`
}

+model `CreateRequest:"false" UpdateRequest:"false"`

func (*Client) FromRow

func (v *Client) FromRow(vdb *db.Client) error

func (*Client) Load

func (v *Client) Load(tx *sql.Tx, id string) (err error)

func (*Client) ToRow

func (v *Client) ToRow(vdb *db.Client) error

type Conference

type Conference struct {
	LocalizedFields           `json:"-"`
	ID                        string               `json:"id"`
	Title                     string               `json:"title" l10n:"true"`
	Description               string               `json:"description,omitempty" l10n:"true"`
	CFPLeadText               string               `json:"cfp_lead_text,omitempty" l10n:"true"`
	CFPPreSubmitInstructions  string               `json:"cfp_pre_submit_instructions,omitempty" l10n:"true"`
	CFPPostSubmitInstructions string               `json:"cfp_post_submit_instructions,omitempty" l10n:"true"`
	ContactInformation        string               `json:"contact_information,omitempty" l10n:"true"`
	CoverURL                  string               `json:"cover_url"`
	RedirectURL               string               `json:"redirect_url"`
	SeriesID                  string               `json:"series_id,omitempty"`
	Series                    *ConferenceSeries    `json:"series,omitempty" decorate:"true"`
	SubTitle                  string               `json:"sub_title" l10n:"true"`
	Slug                      string               `json:"slug"`
	FullSlug                  string               `json:"full_slug,omitempty"` // Only populated when decorated
	Status                    string               `json:"status"`
	BlogFeedbackAvailable     bool                 `json:"blog_feedback_available"`
	TimetableAvailable        bool                 `json:"timetable_available"`
	Timezone                  string               `json:"timezone"`
	Dates                     ConferenceDateList   `json:"dates,omitempty"`
	Administrators            UserList             `json:"administrators,omitempty" decorate:"true"`
	Venues                    VenueList            `json:"venues,omitempty" decorate:"true"`
	FeaturedSpeakers          FeaturedSpeakerList  `json:"featured_speakers,omitempty" decorate:"true"`
	Sponsors                  SponsorList          `json:"sponsors,omitempty" decorate:"true"`
	SessionTypes              SessionTypeList      `json:"session_types,omitempty" decorate:"true"`
	Tracks                    TrackList            `json:"tracks,omitempty" decorate:"true"`
	ExternalResources         ExternalResourceList `json:"external_resources,omitempty"`
}

+model `UpdateRequest:"false"`

func (*Conference) FromRow

func (v *Conference) FromRow(vdb *db.Conference) error

func (*Conference) Load

func (v *Conference) Load(tx *sql.Tx, id string) (err error)

func (Conference) MarshalJSON

func (v Conference) MarshalJSON() ([]byte, error)

func (*Conference) ToRow

func (v *Conference) ToRow(vdb *db.Conference) error

type ConferenceComponent

type ConferenceComponent struct {
	ID           string `json:"id"`
	ConferenceID string `json:"conference_id"`
	Name         string `json:"id"`
	Value        string `json:"value"`
}

+model

func (*ConferenceComponent) FromRow

func (*ConferenceComponent) Load

func (v *ConferenceComponent) Load(tx *sql.Tx, id string) (err error)

func (*ConferenceComponent) ToRow

type ConferenceDate

type ConferenceDate struct {
	ID    string
	Open  time.Time
	Close time.Time
}

+model `LookupRequest:"false" UpdateRequest:"false"`

func (*ConferenceDate) Extract

func (cdl *ConferenceDate) Extract(v interface{}) error

func (*ConferenceDate) FromRow

func (v *ConferenceDate) FromRow(vdb *db.ConferenceDate) error

func (*ConferenceDate) Load

func (v *ConferenceDate) Load(tx *sql.Tx, id string) (err error)

func (ConferenceDate) MarshalJSON

func (cd ConferenceDate) MarshalJSON() ([]byte, error)

func (ConferenceDate) String

func (cd ConferenceDate) String() string

func (*ConferenceDate) ToRow

func (v *ConferenceDate) ToRow(vdb *db.ConferenceDate) error

func (*ConferenceDate) UnmarshalJSON

func (cd *ConferenceDate) UnmarshalJSON(data []byte) error

type ConferenceDateList

type ConferenceDateList []ConferenceDate

type ConferenceList

type ConferenceList []Conference

type ConferenceSeries

type ConferenceSeries struct {
	LocalizedFields `json:"-"`
	ID              string `json:"id"`
	Slug            string `json:"slug"`
	Title           string `json:"title" l10n:"true"`
}

+model

func (*ConferenceSeries) FromRow

func (v *ConferenceSeries) FromRow(vdb *db.ConferenceSeries) error

func (*ConferenceSeries) Load

func (v *ConferenceSeries) Load(tx *sql.Tx, id string) (err error)

func (ConferenceSeries) MarshalJSON

func (v ConferenceSeries) MarshalJSON() ([]byte, error)

func (*ConferenceSeries) ToRow

func (v *ConferenceSeries) ToRow(vdb *db.ConferenceSeries) error

type ConferenceSeriesList

type ConferenceSeriesList []ConferenceSeries

type ConferenceVenue

type ConferenceVenue struct {
	ConferenceID string
	VenueID      string
}

+model

func (*ConferenceVenue) ToRow

func (v *ConferenceVenue) ToRow(vdb *db.ConferenceVenue) error

type ConfirmTemporaryEmailRequest

type ConfirmTemporaryEmailRequest struct {
	TargetID        string `json:"target_id"` // ID of the user to register the email for
	ConfirmationKey string `json:"confirmation_key"`
}

+transport

func (ConfirmTemporaryEmailRequest) MarshalJSON

func (r ConfirmTemporaryEmailRequest) MarshalJSON() ([]byte, error)

func (ConfirmTemporaryEmailRequest) MarshalURL

func (r ConfirmTemporaryEmailRequest) MarshalURL() ([]byte, error)

func (*ConfirmTemporaryEmailRequest) Populate

func (r *ConfirmTemporaryEmailRequest) Populate(m map[string]interface{}) error

func (*ConfirmTemporaryEmailRequest) UnmarshalJSON

func (r *ConfirmTemporaryEmailRequest) UnmarshalJSON(data []byte) error

type CreateBlogEntryRequest

type CreateBlogEntryRequest struct {
	ConferenceID    string            `json:"conference_id"`
	Status          string            `json:"status"`
	Title           string            `json:"title"`
	URL             string            `json:"url"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (CreateBlogEntryRequest) MarshalJSON

func (r CreateBlogEntryRequest) MarshalJSON() ([]byte, error)

func (CreateBlogEntryRequest) MarshalURL

func (r CreateBlogEntryRequest) MarshalURL() ([]byte, error)

func (*CreateBlogEntryRequest) Populate

func (r *CreateBlogEntryRequest) Populate(m map[string]interface{}) error

func (*CreateBlogEntryRequest) UnmarshalJSON

func (r *CreateBlogEntryRequest) UnmarshalJSON(data []byte) error

type CreateClientRequest

type CreateClientRequest struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

+transport

func (CreateClientRequest) MarshalJSON

func (r CreateClientRequest) MarshalJSON() ([]byte, error)

func (CreateClientRequest) MarshalURL

func (r CreateClientRequest) MarshalURL() ([]byte, error)

func (*CreateClientRequest) Populate

func (r *CreateClientRequest) Populate(m map[string]interface{}) error

func (*CreateClientRequest) UnmarshalJSON

func (r *CreateClientRequest) UnmarshalJSON(data []byte) error

type CreateClientSessionRequest

type CreateClientSessionRequest struct {
	AccessToken string `json:"access_token"`
	AuthVia     string `json:"auth_via"`
}

+transport

func (CreateClientSessionRequest) MarshalJSON

func (r CreateClientSessionRequest) MarshalJSON() ([]byte, error)

func (CreateClientSessionRequest) MarshalURL

func (r CreateClientSessionRequest) MarshalURL() ([]byte, error)

func (*CreateClientSessionRequest) Populate

func (r *CreateClientSessionRequest) Populate(m map[string]interface{}) error

func (*CreateClientSessionRequest) UnmarshalJSON

func (r *CreateClientSessionRequest) UnmarshalJSON(data []byte) error

type CreateClientSessionResponse

type CreateClientSessionResponse struct {
	SessionID string `json:"sid"`
	Expires   string `json:"expires"`
}

+transport

func (CreateClientSessionResponse) MarshalJSON

func (r CreateClientSessionResponse) MarshalJSON() ([]byte, error)

func (CreateClientSessionResponse) MarshalURL

func (r CreateClientSessionResponse) MarshalURL() ([]byte, error)

func (*CreateClientSessionResponse) Populate

func (r *CreateClientSessionResponse) Populate(m map[string]interface{}) error

func (*CreateClientSessionResponse) UnmarshalJSON

func (r *CreateClientSessionResponse) UnmarshalJSON(data []byte) error

type CreateConferenceComponentRequest

type CreateConferenceComponentRequest struct {
	ConferenceID string `json:"conference_id"`
	Name         string `json:"name"`
	Value        string `json:"value"`

	DatabaseOptions []db.InsertOption `json:"-"`
}

type CreateConferenceDateRequest

type CreateConferenceDateRequest struct {
	ConferenceID    string            `json:"conference_id"`
	Date            ConferenceDate    `json:"date" extract:"true"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (CreateConferenceDateRequest) MarshalJSON

func (r CreateConferenceDateRequest) MarshalJSON() ([]byte, error)

func (CreateConferenceDateRequest) MarshalURL

func (r CreateConferenceDateRequest) MarshalURL() ([]byte, error)

func (*CreateConferenceDateRequest) Populate

func (r *CreateConferenceDateRequest) Populate(m map[string]interface{}) error

func (*CreateConferenceDateRequest) UnmarshalJSON

func (r *CreateConferenceDateRequest) UnmarshalJSON(data []byte) error

type CreateConferenceRequest

type CreateConferenceRequest struct {
	Title                     string            `json:"title" l10n:"true"`
	CFPLeadText               jsval.MaybeString `json:"cfp_lead_text" l10n:"true"`
	CFPPreSubmitInstructions  jsval.MaybeString `json:"cfp_pre_submit_instructions" l10n:"true"`
	CFPPostSubmitInstructions jsval.MaybeString `json:"cfp_post_submit_instructions" l10n:"true"`
	ContactInformation        jsval.MaybeString `json:"contact_information" l10n:"true"`
	Description               jsval.MaybeString `json:"description" l10n:"true"`
	SeriesID                  string            `json:"series_id"`
	SubTitle                  jsval.MaybeString `json:"sub_title" l10n:"true"`
	Slug                      string            `json:"slug"`
	Timezone                  jsval.MaybeString `json:"timezone"`
	LocalizedFields           `json:"-"`
	DatabaseOptions           []db.InsertOption `json:"-"`
}

+transport

func (*CreateConferenceRequest) GetPropNames

func (r *CreateConferenceRequest) GetPropNames() ([]string, error)

func (CreateConferenceRequest) MarshalJSON

func (r CreateConferenceRequest) MarshalJSON() ([]byte, error)

func (CreateConferenceRequest) MarshalURL

func (r CreateConferenceRequest) MarshalURL() ([]byte, error)

func (*CreateConferenceRequest) Populate

func (r *CreateConferenceRequest) Populate(m map[string]interface{}) error

func (*CreateConferenceRequest) SetPropValue

func (r *CreateConferenceRequest) SetPropValue(s string, v interface{}) error

func (*CreateConferenceRequest) UnmarshalJSON

func (r *CreateConferenceRequest) UnmarshalJSON(data []byte) error

type CreateConferenceSeriesRequest

type CreateConferenceSeriesRequest struct {
	SessionID       string `json:"sid"`
	Slug            string `json:"slug"`
	Title           string `json:"title"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (CreateConferenceSeriesRequest) MarshalJSON

func (r CreateConferenceSeriesRequest) MarshalJSON() ([]byte, error)

func (CreateConferenceSeriesRequest) MarshalURL

func (r CreateConferenceSeriesRequest) MarshalURL() ([]byte, error)

func (*CreateConferenceSeriesRequest) Populate

func (r *CreateConferenceSeriesRequest) Populate(m map[string]interface{}) error

func (*CreateConferenceSeriesRequest) UnmarshalJSON

func (r *CreateConferenceSeriesRequest) UnmarshalJSON(data []byte) error

type CreateConferenceVenueRequest

type CreateConferenceVenueRequest struct {
	ConferenceID    string
	VenueID         string
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (CreateConferenceVenueRequest) MarshalJSON

func (r CreateConferenceVenueRequest) MarshalJSON() ([]byte, error)

func (CreateConferenceVenueRequest) MarshalURL

func (r CreateConferenceVenueRequest) MarshalURL() ([]byte, error)

func (*CreateConferenceVenueRequest) Populate

func (r *CreateConferenceVenueRequest) Populate(m map[string]interface{}) error

func (*CreateConferenceVenueRequest) UnmarshalJSON

func (r *CreateConferenceVenueRequest) UnmarshalJSON(data []byte) error

type CreateExternalResourceRequest

type CreateExternalResourceRequest struct {
	ConferenceID    string            `json:"conference_id"`
	Description     jsval.MaybeString `json:"description,omitempty" l10n:"true"`
	Title           string            `json:"title" l10n:"true"`
	URL             string            `json:"url"`
	LocalizedFields `json:"-"`
	SortOrder       jsval.MaybeInt    `json:"sort_order,omitempty"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (*CreateExternalResourceRequest) GetPropNames

func (r *CreateExternalResourceRequest) GetPropNames() ([]string, error)

func (CreateExternalResourceRequest) MarshalJSON

func (r CreateExternalResourceRequest) MarshalJSON() ([]byte, error)

func (CreateExternalResourceRequest) MarshalURL

func (r CreateExternalResourceRequest) MarshalURL() ([]byte, error)

func (*CreateExternalResourceRequest) Populate

func (r *CreateExternalResourceRequest) Populate(m map[string]interface{}) error

func (*CreateExternalResourceRequest) SetPropValue

func (r *CreateExternalResourceRequest) SetPropValue(s string, v interface{}) error

func (*CreateExternalResourceRequest) UnmarshalJSON

func (r *CreateExternalResourceRequest) UnmarshalJSON(data []byte) error

type CreateFeaturedSpeakerRequest

type CreateFeaturedSpeakerRequest struct {
	*AddFeaturedSpeakerRequest
}

type CreateQuestionRequest

type CreateQuestionRequest struct {
	SessionID       string            `json:"session_id" urlenc:"session_id"`
	Body            string            `json:"body" urlenc:"body"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (CreateQuestionRequest) MarshalJSON

func (r CreateQuestionRequest) MarshalJSON() ([]byte, error)

func (CreateQuestionRequest) MarshalURL

func (r CreateQuestionRequest) MarshalURL() ([]byte, error)

func (*CreateQuestionRequest) Populate

func (r *CreateQuestionRequest) Populate(m map[string]interface{}) error

func (*CreateQuestionRequest) UnmarshalJSON

func (r *CreateQuestionRequest) UnmarshalJSON(data []byte) error

type CreateRoomRequest

type CreateRoomRequest struct {
	VenueID         jsval.MaybeString `json:"venue_id"`
	Name            jsval.MaybeString `json:"name" l10n:"true"`
	Capacity        jsval.MaybeUint   `json:"capacity"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (*CreateRoomRequest) GetPropNames

func (r *CreateRoomRequest) GetPropNames() ([]string, error)

func (CreateRoomRequest) MarshalJSON

func (r CreateRoomRequest) MarshalJSON() ([]byte, error)

func (CreateRoomRequest) MarshalURL

func (r CreateRoomRequest) MarshalURL() ([]byte, error)

func (*CreateRoomRequest) Populate

func (r *CreateRoomRequest) Populate(m map[string]interface{}) error

func (*CreateRoomRequest) SetPropValue

func (r *CreateRoomRequest) SetPropValue(s string, v interface{}) error

func (*CreateRoomRequest) UnmarshalJSON

func (r *CreateRoomRequest) UnmarshalJSON(data []byte) error

type CreateSessionRequest

type CreateSessionRequest struct {
	ConferenceID     string            `json:"conference_id"`
	SpeakerID        jsval.MaybeString `json:"speaker_id,omitempty"`
	SessionTypeID    string            `json:"session_type_id"`
	Title            jsval.MaybeString `json:"title,omitempty" l10n:"true"`
	Abstract         jsval.MaybeString `json:"abstract,omitempty" l10n:"true"`
	Memo             jsval.MaybeString `json:"memo,omitempty"`
	MaterialLevel    jsval.MaybeString `json:"material_level,omitempty"`
	Tags             jsval.MaybeString `json:"tags,omitempty"`
	Category         jsval.MaybeString `json:"category,omitempty"`
	SpokenLanguage   jsval.MaybeString `json:"spoken_language,omitempty"`
	SlideLanguage    jsval.MaybeString `json:"slide_language,omitempty"`
	SlideSubtitles   jsval.MaybeString `json:"slide_subtitles,omitempty"`
	SlideURL         jsval.MaybeString `json:"slide_url,omitempty"`
	VideoURL         jsval.MaybeString `json:"video_url,omitempty"`
	PhotoRelease     jsval.MaybeString `json:"photo_release,omitempty"`
	RecordingRelease jsval.MaybeString `json:"recording_release,omitempty"`
	MaterialsRelease jsval.MaybeString `json:"materials_release,omitempty"`
	LocalizedFields  `json:"-"`
	Duration         int               `json:"-"` // This is not sent from the client, but is used internally
	DatabaseOptions  []db.InsertOption `json:"-"`
}

+transport

func (*CreateSessionRequest) GetPropNames

func (r *CreateSessionRequest) GetPropNames() ([]string, error)

func (CreateSessionRequest) MarshalJSON

func (r CreateSessionRequest) MarshalJSON() ([]byte, error)

func (CreateSessionRequest) MarshalURL

func (r CreateSessionRequest) MarshalURL() ([]byte, error)

func (*CreateSessionRequest) Populate

func (r *CreateSessionRequest) Populate(m map[string]interface{}) error

func (*CreateSessionRequest) SetPropValue

func (r *CreateSessionRequest) SetPropValue(s string, v interface{}) error

func (*CreateSessionRequest) UnmarshalJSON

func (r *CreateSessionRequest) UnmarshalJSON(data []byte) error

type CreateSessionSurveyResponseRequest

type CreateSessionSurveyResponseRequest struct {
	SessionID          jsval.MaybeString `json:"session_id"`
	UserPriorKnowledge int               `json:"user_prior_knowledge"`
	SpeakerKnowledge   int               `json:"speaker_knowledge"`
	MaterialQuality    int               `json:"material_quality"`
	OverallRating      int               `json:"overall_rating"`
	CommentGood        jsval.MaybeString `json:"comment_good" urlenc:"comment_good,omitempty,string"`
	CommentImprovement jsval.MaybeString `json:"comment_improvement" urlenc:"comment_improvement,omitempty,string"`
}

+transport

func (CreateSessionSurveyResponseRequest) MarshalJSON

func (r CreateSessionSurveyResponseRequest) MarshalJSON() ([]byte, error)

func (CreateSessionSurveyResponseRequest) MarshalURL

func (r CreateSessionSurveyResponseRequest) MarshalURL() ([]byte, error)

func (*CreateSessionSurveyResponseRequest) Populate

func (r *CreateSessionSurveyResponseRequest) Populate(m map[string]interface{}) error

func (*CreateSessionSurveyResponseRequest) UnmarshalJSON

func (r *CreateSessionSurveyResponseRequest) UnmarshalJSON(data []byte) error

type CreateSessionTypeRequest

type CreateSessionTypeRequest struct {
	*AddSessionTypeRequest
}

type CreateSponsorRequest

type CreateSponsorRequest struct {
	*AddSponsorRequest
}

type CreateTemporaryEmailRequest

type CreateTemporaryEmailRequest struct {
	TargetID string            `json:"target_id"` // ID of the user to register the email for
	Email    string            `json:"email"`
	Lang     jsval.MaybeString `json:"lang"`
}

+transport

func (CreateTemporaryEmailRequest) MarshalJSON

func (r CreateTemporaryEmailRequest) MarshalJSON() ([]byte, error)

func (CreateTemporaryEmailRequest) MarshalURL

func (r CreateTemporaryEmailRequest) MarshalURL() ([]byte, error)

func (*CreateTemporaryEmailRequest) Populate

func (r *CreateTemporaryEmailRequest) Populate(m map[string]interface{}) error

func (*CreateTemporaryEmailRequest) UnmarshalJSON

func (r *CreateTemporaryEmailRequest) UnmarshalJSON(data []byte) error

type CreateTemporaryEmailResponse

type CreateTemporaryEmailResponse struct {
	ConfirmationKey string `json:"confirmation_key,omitempty"`
}

+transport

func (CreateTemporaryEmailResponse) MarshalJSON

func (r CreateTemporaryEmailResponse) MarshalJSON() ([]byte, error)

func (CreateTemporaryEmailResponse) MarshalURL

func (r CreateTemporaryEmailResponse) MarshalURL() ([]byte, error)

func (*CreateTemporaryEmailResponse) Populate

func (r *CreateTemporaryEmailResponse) Populate(m map[string]interface{}) error

func (*CreateTemporaryEmailResponse) UnmarshalJSON

func (r *CreateTemporaryEmailResponse) UnmarshalJSON(data []byte) error

type CreateTrackRequest

type CreateTrackRequest struct {
	ConferenceID    string            `json:"conference_id"`
	RoomID          string            `json:"room_id"`
	Name            jsval.MaybeString `json:"name,omitempty" l10n:"true"`
	SortOrder       jsval.MaybeInt    `json:"sort_order,omitempty"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (*CreateTrackRequest) GetPropNames

func (r *CreateTrackRequest) GetPropNames() ([]string, error)

func (CreateTrackRequest) MarshalJSON

func (r CreateTrackRequest) MarshalJSON() ([]byte, error)

func (CreateTrackRequest) MarshalURL

func (r CreateTrackRequest) MarshalURL() ([]byte, error)

func (*CreateTrackRequest) Populate

func (r *CreateTrackRequest) Populate(m map[string]interface{}) error

func (*CreateTrackRequest) SetPropValue

func (r *CreateTrackRequest) SetPropValue(s string, v interface{}) error

func (*CreateTrackRequest) UnmarshalJSON

func (r *CreateTrackRequest) UnmarshalJSON(data []byte) error

type CreateUserRequest

type CreateUserRequest struct {
	FirstName       jsval.MaybeString `json:"first_name,omitempty" l10n:"true"`
	LastName        jsval.MaybeString `json:"last_name,omitempty" l10n:"true"`
	Nickname        string            `json:"nickname"`
	Email           jsval.MaybeString `json:"email,omitempty"`
	AuthVia         string            `json:"auth_via"`
	AuthUserID      string            `json:"auth_user_id"`
	AvatarURL       jsval.MaybeString `json:"avatar_url,omitempty"`
	TshirtSize      jsval.MaybeString `json:"tshirt_size,omitempty"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (*CreateUserRequest) GetPropNames

func (r *CreateUserRequest) GetPropNames() ([]string, error)

func (CreateUserRequest) MarshalJSON

func (r CreateUserRequest) MarshalJSON() ([]byte, error)

func (CreateUserRequest) MarshalURL

func (r CreateUserRequest) MarshalURL() ([]byte, error)

func (*CreateUserRequest) Populate

func (r *CreateUserRequest) Populate(m map[string]interface{}) error

func (*CreateUserRequest) SetPropValue

func (r *CreateUserRequest) SetPropValue(s string, v interface{}) error

func (*CreateUserRequest) UnmarshalJSON

func (r *CreateUserRequest) UnmarshalJSON(data []byte) error

type CreateVenueRequest

type CreateVenueRequest struct {
	Name            jsval.MaybeString `json:"name" l10n:"true"`
	Address         jsval.MaybeString `json:"address" l10n:"true"`
	Longitude       jsval.MaybeFloat  `json:"longitude,omitempty"`
	Latitude        jsval.MaybeFloat  `json:"latitude,omitempty"`
	LocalizedFields `json:"-"`
	DatabaseOptions []db.InsertOption `json:"-"`
}

+transport

func (*CreateVenueRequest) GetPropNames

func (r *CreateVenueRequest) GetPropNames() ([]string, error)

func (CreateVenueRequest) MarshalJSON

func (r CreateVenueRequest) MarshalJSON() ([]byte, error)

func (CreateVenueRequest) MarshalURL

func (r CreateVenueRequest) MarshalURL() ([]byte, error)

func (*CreateVenueRequest) Populate

func (r *CreateVenueRequest) Populate(m map[string]interface{}) error

func (*CreateVenueRequest) SetPropValue

func (r *CreateVenueRequest) SetPropValue(s string, v interface{}) error

func (*CreateVenueRequest) UnmarshalJSON

func (r *CreateVenueRequest) UnmarshalJSON(data []byte) error

type Date

type Date struct {
	Year  int `json:"year"`
	Month int `json:"month"`
	Day   int `json:"day"`
}

Date is used to store simple dates YYYY-MM-DD

func NewDate

func NewDate(y, m, d int) Date

func (Date) MarshalJSON

func (d Date) MarshalJSON() ([]byte, error)

func (*Date) Parse

func (d *Date) Parse(s string) error

func (Date) String

func (d Date) String() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(data []byte) error

type DateList

type DateList []Date

func (*DateList) Extract

func (dl *DateList) Extract(v interface{}) error

type DeleteBlogEntryRequest

type DeleteBlogEntryRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteBlogEntryRequest) MarshalJSON

func (r DeleteBlogEntryRequest) MarshalJSON() ([]byte, error)

func (DeleteBlogEntryRequest) MarshalURL

func (r DeleteBlogEntryRequest) MarshalURL() ([]byte, error)

func (*DeleteBlogEntryRequest) Populate

func (r *DeleteBlogEntryRequest) Populate(m map[string]interface{}) error

func (*DeleteBlogEntryRequest) UnmarshalJSON

func (r *DeleteBlogEntryRequest) UnmarshalJSON(data []byte) error

type DeleteConferenceAdminRequest

type DeleteConferenceAdminRequest struct {
	ConferenceID string `json:"conference_id"`
	AdminID      string `json:"admin_id"`
}

+transport

func (DeleteConferenceAdminRequest) MarshalJSON

func (r DeleteConferenceAdminRequest) MarshalJSON() ([]byte, error)

func (DeleteConferenceAdminRequest) MarshalURL

func (r DeleteConferenceAdminRequest) MarshalURL() ([]byte, error)

func (*DeleteConferenceAdminRequest) Populate

func (r *DeleteConferenceAdminRequest) Populate(m map[string]interface{}) error

func (*DeleteConferenceAdminRequest) UnmarshalJSON

func (r *DeleteConferenceAdminRequest) UnmarshalJSON(data []byte) error

type DeleteConferenceDateRequest

type DeleteConferenceDateRequest struct {
	ConferenceID string `json:"conference_id"`
	Date         string `json:"date"`
}

+transport

func (DeleteConferenceDateRequest) MarshalJSON

func (r DeleteConferenceDateRequest) MarshalJSON() ([]byte, error)

func (DeleteConferenceDateRequest) MarshalURL

func (r DeleteConferenceDateRequest) MarshalURL() ([]byte, error)

func (*DeleteConferenceDateRequest) Populate

func (r *DeleteConferenceDateRequest) Populate(m map[string]interface{}) error

func (*DeleteConferenceDateRequest) UnmarshalJSON

func (r *DeleteConferenceDateRequest) UnmarshalJSON(data []byte) error

type DeleteConferenceRequest

type DeleteConferenceRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteConferenceRequest) MarshalJSON

func (r DeleteConferenceRequest) MarshalJSON() ([]byte, error)

func (DeleteConferenceRequest) MarshalURL

func (r DeleteConferenceRequest) MarshalURL() ([]byte, error)

func (*DeleteConferenceRequest) Populate

func (r *DeleteConferenceRequest) Populate(m map[string]interface{}) error

func (*DeleteConferenceRequest) UnmarshalJSON

func (r *DeleteConferenceRequest) UnmarshalJSON(data []byte) error

type DeleteConferenceSeriesRequest

type DeleteConferenceSeriesRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteConferenceSeriesRequest) MarshalJSON

func (r DeleteConferenceSeriesRequest) MarshalJSON() ([]byte, error)

func (DeleteConferenceSeriesRequest) MarshalURL

func (r DeleteConferenceSeriesRequest) MarshalURL() ([]byte, error)

func (*DeleteConferenceSeriesRequest) Populate

func (r *DeleteConferenceSeriesRequest) Populate(m map[string]interface{}) error

func (*DeleteConferenceSeriesRequest) UnmarshalJSON

func (r *DeleteConferenceSeriesRequest) UnmarshalJSON(data []byte) error

type DeleteConferenceStaffRequest

type DeleteConferenceStaffRequest struct {
	ConferenceID string `json:"conference_id"`
	StaffID      string `json:"staff_id"`
}

+transport

func (DeleteConferenceStaffRequest) MarshalJSON

func (r DeleteConferenceStaffRequest) MarshalJSON() ([]byte, error)

func (DeleteConferenceStaffRequest) MarshalURL

func (r DeleteConferenceStaffRequest) MarshalURL() ([]byte, error)

func (*DeleteConferenceStaffRequest) Populate

func (r *DeleteConferenceStaffRequest) Populate(m map[string]interface{}) error

func (*DeleteConferenceStaffRequest) UnmarshalJSON

func (r *DeleteConferenceStaffRequest) UnmarshalJSON(data []byte) error

type DeleteConferenceVenueRequest

type DeleteConferenceVenueRequest struct {
	ConferenceID string `json:"conference_id"`
	VenueID      string `json:"venue_id"`
}

+transport

func (DeleteConferenceVenueRequest) MarshalJSON

func (r DeleteConferenceVenueRequest) MarshalJSON() ([]byte, error)

func (DeleteConferenceVenueRequest) MarshalURL

func (r DeleteConferenceVenueRequest) MarshalURL() ([]byte, error)

func (*DeleteConferenceVenueRequest) Populate

func (r *DeleteConferenceVenueRequest) Populate(m map[string]interface{}) error

func (*DeleteConferenceVenueRequest) UnmarshalJSON

func (r *DeleteConferenceVenueRequest) UnmarshalJSON(data []byte) error

type DeleteExternalResourceRequest

type DeleteExternalResourceRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteExternalResourceRequest) MarshalJSON

func (r DeleteExternalResourceRequest) MarshalJSON() ([]byte, error)

func (DeleteExternalResourceRequest) MarshalURL

func (r DeleteExternalResourceRequest) MarshalURL() ([]byte, error)

func (*DeleteExternalResourceRequest) Populate

func (r *DeleteExternalResourceRequest) Populate(m map[string]interface{}) error

func (*DeleteExternalResourceRequest) UnmarshalJSON

func (r *DeleteExternalResourceRequest) UnmarshalJSON(data []byte) error

type DeleteFeaturedSpeakerRequest

type DeleteFeaturedSpeakerRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteFeaturedSpeakerRequest) MarshalJSON

func (r DeleteFeaturedSpeakerRequest) MarshalJSON() ([]byte, error)

func (DeleteFeaturedSpeakerRequest) MarshalURL

func (r DeleteFeaturedSpeakerRequest) MarshalURL() ([]byte, error)

func (*DeleteFeaturedSpeakerRequest) Populate

func (r *DeleteFeaturedSpeakerRequest) Populate(m map[string]interface{}) error

func (*DeleteFeaturedSpeakerRequest) UnmarshalJSON

func (r *DeleteFeaturedSpeakerRequest) UnmarshalJSON(data []byte) error

type DeleteQuestionRequest

type DeleteQuestionRequest struct {
	ID string `json:"id" urlenc:"id"`
}

+transport

func (DeleteQuestionRequest) MarshalJSON

func (r DeleteQuestionRequest) MarshalJSON() ([]byte, error)

func (DeleteQuestionRequest) MarshalURL

func (r DeleteQuestionRequest) MarshalURL() ([]byte, error)

func (*DeleteQuestionRequest) Populate

func (r *DeleteQuestionRequest) Populate(m map[string]interface{}) error

func (*DeleteQuestionRequest) UnmarshalJSON

func (r *DeleteQuestionRequest) UnmarshalJSON(data []byte) error

type DeleteRoomRequest

type DeleteRoomRequest struct {
	ID string `json:"id" urlenc:"id"`
}

+transport

func (DeleteRoomRequest) MarshalJSON

func (r DeleteRoomRequest) MarshalJSON() ([]byte, error)

func (DeleteRoomRequest) MarshalURL

func (r DeleteRoomRequest) MarshalURL() ([]byte, error)

func (*DeleteRoomRequest) Populate

func (r *DeleteRoomRequest) Populate(m map[string]interface{}) error

func (*DeleteRoomRequest) UnmarshalJSON

func (r *DeleteRoomRequest) UnmarshalJSON(data []byte) error

type DeleteSessionRequest

type DeleteSessionRequest struct {
	ID string `json:"id" urlenc:"id"`
}

+transport

func (DeleteSessionRequest) MarshalJSON

func (r DeleteSessionRequest) MarshalJSON() ([]byte, error)

func (DeleteSessionRequest) MarshalURL

func (r DeleteSessionRequest) MarshalURL() ([]byte, error)

func (*DeleteSessionRequest) Populate

func (r *DeleteSessionRequest) Populate(m map[string]interface{}) error

func (*DeleteSessionRequest) UnmarshalJSON

func (r *DeleteSessionRequest) UnmarshalJSON(data []byte) error

type DeleteSessionTypeRequest

type DeleteSessionTypeRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteSessionTypeRequest) MarshalJSON

func (r DeleteSessionTypeRequest) MarshalJSON() ([]byte, error)

func (DeleteSessionTypeRequest) MarshalURL

func (r DeleteSessionTypeRequest) MarshalURL() ([]byte, error)

func (*DeleteSessionTypeRequest) Populate

func (r *DeleteSessionTypeRequest) Populate(m map[string]interface{}) error

func (*DeleteSessionTypeRequest) UnmarshalJSON

func (r *DeleteSessionTypeRequest) UnmarshalJSON(data []byte) error

type DeleteSponsorRequest

type DeleteSponsorRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteSponsorRequest) MarshalJSON

func (r DeleteSponsorRequest) MarshalJSON() ([]byte, error)

func (DeleteSponsorRequest) MarshalURL

func (r DeleteSponsorRequest) MarshalURL() ([]byte, error)

func (*DeleteSponsorRequest) Populate

func (r *DeleteSponsorRequest) Populate(m map[string]interface{}) error

func (*DeleteSponsorRequest) UnmarshalJSON

func (r *DeleteSponsorRequest) UnmarshalJSON(data []byte) error

type DeleteTrackRequest

type DeleteTrackRequest struct {
	ID              string `json:"id"`
	LocalizedFields `json:"-"`
}

+transport

func (DeleteTrackRequest) MarshalJSON

func (r DeleteTrackRequest) MarshalJSON() ([]byte, error)

func (DeleteTrackRequest) MarshalURL

func (r DeleteTrackRequest) MarshalURL() ([]byte, error)

func (*DeleteTrackRequest) Populate

func (r *DeleteTrackRequest) Populate(m map[string]interface{}) error

func (*DeleteTrackRequest) UnmarshalJSON

func (r *DeleteTrackRequest) UnmarshalJSON(data []byte) error

type DeleteUserRequest

type DeleteUserRequest struct {
	ID string `json:"id"`
}

+transport

func (DeleteUserRequest) MarshalJSON

func (r DeleteUserRequest) MarshalJSON() ([]byte, error)

func (DeleteUserRequest) MarshalURL

func (r DeleteUserRequest) MarshalURL() ([]byte, error)

func (*DeleteUserRequest) Populate

func (r *DeleteUserRequest) Populate(m map[string]interface{}) error

func (*DeleteUserRequest) UnmarshalJSON

func (r *DeleteUserRequest) UnmarshalJSON(data []byte) error

type DeleteVenueRequest

type DeleteVenueRequest struct {
	ID string `json:"id" urlenc:"id"`
}

+transport

func (DeleteVenueRequest) MarshalJSON

func (r DeleteVenueRequest) MarshalJSON() ([]byte, error)

func (DeleteVenueRequest) MarshalURL

func (r DeleteVenueRequest) MarshalURL() ([]byte, error)

func (*DeleteVenueRequest) Populate

func (r *DeleteVenueRequest) Populate(m map[string]interface{}) error

func (*DeleteVenueRequest) UnmarshalJSON

func (r *DeleteVenueRequest) UnmarshalJSON(data []byte) error

type DeleteVenueRoomRequest

type DeleteVenueRoomRequest struct {
	VenueID string `json:"venue_id"`
	RoomID  string `json:"room_id"`
}

+transport

func (DeleteVenueRoomRequest) MarshalJSON

func (r DeleteVenueRoomRequest) MarshalJSON() ([]byte, error)

func (DeleteVenueRoomRequest) MarshalURL

func (r DeleteVenueRoomRequest) MarshalURL() ([]byte, error)

func (*DeleteVenueRoomRequest) Populate

func (r *DeleteVenueRoomRequest) Populate(m map[string]interface{}) error

func (*DeleteVenueRoomRequest) UnmarshalJSON

func (r *DeleteVenueRoomRequest) UnmarshalJSON(data []byte) error

type ErrInvalidFieldType

type ErrInvalidFieldType struct {
	Field string
}

func (ErrInvalidFieldType) Error

func (e ErrInvalidFieldType) Error() string

type ErrInvalidJSONFieldType

type ErrInvalidJSONFieldType struct {
	Field string
	Value interface{}
}

func (ErrInvalidJSONFieldType) Error

func (e ErrInvalidJSONFieldType) Error() string

type ExternalResource

type ExternalResource struct {
	LocalizedFields `json:"-"`
	ID              string `json:"id"`
	ConferenceID    string `json:"conference_id"`
	Description     string `json:"description" l10n:"true"`
	ImageURL        string `json:"image_url"`
	Title           string `json:"title" l10n:"true"`
	URL             string `json:"url"`
	SortOrder       int    `json:"sort_order"`
}

+model

func (*ExternalResource) FromRow

func (v *ExternalResource) FromRow(vdb *db.ExternalResource) error

func (*ExternalResource) Load

func (v *ExternalResource) Load(tx *sql.Tx, id string) (err error)

func (ExternalResource) MarshalJSON

func (v ExternalResource) MarshalJSON() ([]byte, error)

func (*ExternalResource) ToRow

func (v *ExternalResource) ToRow(vdb *db.ExternalResource) error

type ExternalResourceList

type ExternalResourceList []ExternalResource

type FeaturedSpeaker

type FeaturedSpeaker struct {
	LocalizedFields `json:"-"`
	ID              string `json:"id"`
	ConferenceID    string `json:"conference_id"`
	SpeakerID       string `json:"speaker_id"`
	AvatarURL       string `json:"avatar_url"`
	DisplayName     string `json:"display_name" l10n:"true"`
	Description     string `json:"description" l10n:"true"`
}

+model

func (*FeaturedSpeaker) FromRow

func (v *FeaturedSpeaker) FromRow(vdb *db.FeaturedSpeaker) error

func (*FeaturedSpeaker) Load

func (v *FeaturedSpeaker) Load(tx *sql.Tx, id string) (err error)

func (FeaturedSpeaker) MarshalJSON

func (v FeaturedSpeaker) MarshalJSON() ([]byte, error)

func (*FeaturedSpeaker) ToRow

func (v *FeaturedSpeaker) ToRow(vdb *db.FeaturedSpeaker) error

type FeaturedSpeakerList

type FeaturedSpeakerList []FeaturedSpeaker

type GetConferenceScheduleRequest

type GetConferenceScheduleRequest struct {
	ConferenceID string            `json:"conference_id"`
	Lang         jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
}

+transport

func (GetConferenceScheduleRequest) MarshalJSON

func (r GetConferenceScheduleRequest) MarshalJSON() ([]byte, error)

func (GetConferenceScheduleRequest) MarshalURL

func (r GetConferenceScheduleRequest) MarshalURL() ([]byte, error)

func (*GetConferenceScheduleRequest) Populate

func (r *GetConferenceScheduleRequest) Populate(m map[string]interface{}) error

func (*GetConferenceScheduleRequest) UnmarshalJSON

func (r *GetConferenceScheduleRequest) UnmarshalJSON(data []byte) error

type JSONTime

type JSONTime time.Time

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

func (*JSONTime) UnmarshalJSON

func (t *JSONTime) UnmarshalJSON(buf []byte) error

type JSONTimeList

type JSONTimeList []JSONTime

func (*JSONTimeList) Extract

func (tl *JSONTimeList) Extract(v interface{}) error

type ListBlogEntriesRequest

type ListBlogEntriesRequest struct {
	ConferenceID string            `json:"conference_id"`
	Status       []string          `json:"status" urlenc:"status,omitempty"`
	Lang         jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`
	VerifiedCall bool              `json:"-"`
}

+transport

func (ListBlogEntriesRequest) MarshalJSON

func (r ListBlogEntriesRequest) MarshalJSON() ([]byte, error)

func (ListBlogEntriesRequest) MarshalURL

func (r ListBlogEntriesRequest) MarshalURL() ([]byte, error)

func (*ListBlogEntriesRequest) Populate

func (r *ListBlogEntriesRequest) Populate(m map[string]interface{}) error

func (*ListBlogEntriesRequest) UnmarshalJSON

func (r *ListBlogEntriesRequest) UnmarshalJSON(data []byte) error

type ListConferenceAdminRequest

type ListConferenceAdminRequest struct {
	ConferenceID string            `json:"conference_id"`
	Lang         jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`
}

+transport

func (ListConferenceAdminRequest) MarshalJSON

func (r ListConferenceAdminRequest) MarshalJSON() ([]byte, error)

func (ListConferenceAdminRequest) MarshalURL

func (r ListConferenceAdminRequest) MarshalURL() ([]byte, error)

func (*ListConferenceAdminRequest) Populate

func (r *ListConferenceAdminRequest) Populate(m map[string]interface{}) error

func (*ListConferenceAdminRequest) UnmarshalJSON

func (r *ListConferenceAdminRequest) UnmarshalJSON(data []byte) error

type ListConferenceCredentialRequest

type ListConferenceCredentialRequest struct {
	ConferenceID string `json:"conference_id"`
}

+transport

func (ListConferenceCredentialRequest) MarshalJSON

func (r ListConferenceCredentialRequest) MarshalJSON() ([]byte, error)

func (ListConferenceCredentialRequest) MarshalURL

func (r ListConferenceCredentialRequest) MarshalURL() ([]byte, error)

func (*ListConferenceCredentialRequest) Populate

func (r *ListConferenceCredentialRequest) Populate(m map[string]interface{}) error

func (*ListConferenceCredentialRequest) UnmarshalJSON

func (r *ListConferenceCredentialRequest) UnmarshalJSON(data []byte) error

type ListConferenceDateRequest

type ListConferenceDateRequest struct {
	ConferenceID string `json:"conference_id"`
}

+transport

func (ListConferenceDateRequest) MarshalJSON

func (r ListConferenceDateRequest) MarshalJSON() ([]byte, error)

func (ListConferenceDateRequest) MarshalURL

func (r ListConferenceDateRequest) MarshalURL() ([]byte, error)

func (*ListConferenceDateRequest) Populate

func (r *ListConferenceDateRequest) Populate(m map[string]interface{}) error

func (*ListConferenceDateRequest) UnmarshalJSON

func (r *ListConferenceDateRequest) UnmarshalJSON(data []byte) error

type ListConferenceReponse

type ListConferenceReponse []Conference

+transport

type ListConferenceRequest

type ListConferenceRequest struct {
	Organizers []string          `json:"organizers" urlenc:"organizers,omitempty"`
	RangeEnd   jsval.MaybeString `json:"range_end,omitempty" urlenc:"range_end,omitempty,string"`
	RangeStart jsval.MaybeString `json:"range_start,omitempty" urlenc:"range_start,omitempty,string"`
	Since      jsval.MaybeString `json:"since,omitempty" urlenc:"since,omitempty,string"`
	Status     []string          `json:"status" urlenc:"status,omitempty"`
	Lang       jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`
	Limit      jsval.MaybeInt    `json:"limit,omitempty" urlenc:"limit,omitempty,int64"`
}

+transport

func (ListConferenceRequest) MarshalJSON

func (r ListConferenceRequest) MarshalJSON() ([]byte, error)

func (ListConferenceRequest) MarshalURL

func (r ListConferenceRequest) MarshalURL() ([]byte, error)

func (*ListConferenceRequest) Populate

func (r *ListConferenceRequest) Populate(m map[string]interface{}) error

func (*ListConferenceRequest) UnmarshalJSON

func (r *ListConferenceRequest) UnmarshalJSON(data []byte) error

type ListConferenceSeriesReponse

type ListConferenceSeriesReponse []ConferenceSeries

+transport

type ListConferenceSeriesRequest

type ListConferenceSeriesRequest struct {
	Since jsval.MaybeString `json:"since,omitempty" urlenc:"since,omitempty,string"`
	Limit jsval.MaybeInt    `json:"limit,omitempty" urlenc:"limit,omitempty,int64"`
	Lang  jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`
}

+transport

func (ListConferenceSeriesRequest) MarshalJSON

func (r ListConferenceSeriesRequest) MarshalJSON() ([]byte, error)

func (ListConferenceSeriesRequest) MarshalURL

func (r ListConferenceSeriesRequest) MarshalURL() ([]byte, error)

func (*ListConferenceSeriesRequest) Populate

func (r *ListConferenceSeriesRequest) Populate(m map[string]interface{}) error

func (*ListConferenceSeriesRequest) UnmarshalJSON

func (r *ListConferenceSeriesRequest) UnmarshalJSON(data []byte) error

type ListConferenceStaffRequest

type ListConferenceStaffRequest struct {
	ConferenceID string            `json:"conference_id"`
	Lang         jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`
}

+transport

func (ListConferenceStaffRequest) MarshalJSON

func (r ListConferenceStaffRequest) MarshalJSON() ([]byte, error)

func (ListConferenceStaffRequest) MarshalURL

func (r ListConferenceStaffRequest) MarshalURL() ([]byte, error)

func (*ListConferenceStaffRequest) Populate

func (r *ListConferenceStaffRequest) Populate(m map[string]interface{}) error

func (*ListConferenceStaffRequest) UnmarshalJSON

func (r *ListConferenceStaffRequest) UnmarshalJSON(data []byte) error

type ListConferencesByOrganizerRequest

type ListConferencesByOrganizerRequest struct {
	OrganizerID []string          `json:"organizer_id" urlenc:"organizer_id,omitempty"`
	Since       jsval.MaybeString `json:"since" urlenc:"since,omitempty,string"`
	Status      []string          `json:"status" urlenc:"status,omitempty"`
	Lang        jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	Limit       jsval.MaybeInt    `json:"limit" urlenc:"limit,omitempty,int64"`
}

+transport

func (ListConferencesByOrganizerRequest) MarshalJSON

func (r ListConferencesByOrganizerRequest) MarshalJSON() ([]byte, error)

func (ListConferencesByOrganizerRequest) MarshalURL

func (r ListConferencesByOrganizerRequest) MarshalURL() ([]byte, error)

func (*ListConferencesByOrganizerRequest) Populate

func (r *ListConferencesByOrganizerRequest) Populate(m map[string]interface{}) error

func (*ListConferencesByOrganizerRequest) UnmarshalJSON

func (r *ListConferencesByOrganizerRequest) UnmarshalJSON(data []byte) error

type ListExternalResourceRequest

type ListExternalResourceRequest struct {
	ConferenceID string            `json:"conference_id"`
	Since        jsval.MaybeString `json:"since,omitempty" urlenc:"since,omitempty,string"`
	Limit        jsval.MaybeInt    `json:"limit,omitempty" urlenc:"limit,omitempty,int64"`
	Lang         jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListExternalResourceRequest) MarshalJSON

func (r ListExternalResourceRequest) MarshalJSON() ([]byte, error)

func (ListExternalResourceRequest) MarshalURL

func (r ListExternalResourceRequest) MarshalURL() ([]byte, error)

func (*ListExternalResourceRequest) Populate

func (r *ListExternalResourceRequest) Populate(m map[string]interface{}) error

func (*ListExternalResourceRequest) UnmarshalJSON

func (r *ListExternalResourceRequest) UnmarshalJSON(data []byte) error

type ListFeaturedSpeakersRequest

type ListFeaturedSpeakersRequest struct {
	ConferenceID string            `json:"conference_id"`
	Since        jsval.MaybeString `json:"since" urlenc:"since,omitempty,string"`
	Lang         jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	Limit        jsval.MaybeInt    `json:"limit" urlenc:"limit,omitempty,int64"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListFeaturedSpeakersRequest) MarshalJSON

func (r ListFeaturedSpeakersRequest) MarshalJSON() ([]byte, error)

func (ListFeaturedSpeakersRequest) MarshalURL

func (r ListFeaturedSpeakersRequest) MarshalURL() ([]byte, error)

func (*ListFeaturedSpeakersRequest) Populate

func (r *ListFeaturedSpeakersRequest) Populate(m map[string]interface{}) error

func (*ListFeaturedSpeakersRequest) UnmarshalJSON

func (r *ListFeaturedSpeakersRequest) UnmarshalJSON(data []byte) error

type ListQuestionRequest

type ListQuestionRequest struct {
	Since jsval.MaybeString `json:"since" urlenc:"since,omitempty,string"`
	Lang  jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	Limit jsval.MaybeInt    `json:"limit" urlenc:"limit,omitempty,int64"`
}

+transport

func (ListQuestionRequest) MarshalJSON

func (r ListQuestionRequest) MarshalJSON() ([]byte, error)

func (ListQuestionRequest) MarshalURL

func (r ListQuestionRequest) MarshalURL() ([]byte, error)

func (*ListQuestionRequest) Populate

func (r *ListQuestionRequest) Populate(m map[string]interface{}) error

func (*ListQuestionRequest) UnmarshalJSON

func (r *ListQuestionRequest) UnmarshalJSON(data []byte) error

type ListRoomRequest

type ListRoomRequest struct {
	VenueID string            `json:"venue_id" urlenc:"venue_id"`
	Since   jsval.MaybeString `json:"since" urlenc:"since,omitempty,string"`
	Lang    jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	Limit   jsval.MaybeInt    `json:"limit,omitempty" urlenc:"limit,omitempty,int64"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListRoomRequest) MarshalJSON

func (r ListRoomRequest) MarshalJSON() ([]byte, error)

func (ListRoomRequest) MarshalURL

func (r ListRoomRequest) MarshalURL() ([]byte, error)

func (*ListRoomRequest) Populate

func (r *ListRoomRequest) Populate(m map[string]interface{}) error

func (*ListRoomRequest) UnmarshalJSON

func (r *ListRoomRequest) UnmarshalJSON(data []byte) error

type ListSessionTypesByConferenceRequest

type ListSessionTypesByConferenceRequest struct {
	ConferenceID string            `json:"conference_id" urlenc:"conference_id"`
	Since        jsval.MaybeString `json:"since,omitempty" urlenc:"since,omitempty,string"`
	Limit        jsval.MaybeInt    `json:"limit,omitempty" urlenc:"limit,omitempty,int64"`
	Lang         jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListSessionTypesByConferenceRequest) MarshalJSON

func (r ListSessionTypesByConferenceRequest) MarshalJSON() ([]byte, error)

func (ListSessionTypesByConferenceRequest) MarshalURL

func (r ListSessionTypesByConferenceRequest) MarshalURL() ([]byte, error)

func (*ListSessionTypesByConferenceRequest) Populate

func (r *ListSessionTypesByConferenceRequest) Populate(m map[string]interface{}) error

func (*ListSessionTypesByConferenceRequest) UnmarshalJSON

func (r *ListSessionTypesByConferenceRequest) UnmarshalJSON(data []byte) error

type ListSessionsRequest

type ListSessionsRequest struct {
	ConferenceID jsval.MaybeString `json:"conference_id" urlenc:"conference_id,omitempty,string"`
	Confirmed    []bool            `json:"confirmed" urlenc:"confirmed,omitempty"`
	RangeStart   jsval.MaybeString `json:"range_start" urlenc:"range_start,omitempty,string"`
	RangeEnd     jsval.MaybeString `json:"range_end" urlenc:"range_end,omitempty,string"`
	SpeakerID    jsval.MaybeString `json:"speaker_id" urlenc:"speaker_id,omitempty,string"`
	Status       []string          `json:"status" urlenc:"status,omitempty"`
	Lang         jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListSessionsRequest) MarshalJSON

func (r ListSessionsRequest) MarshalJSON() ([]byte, error)

func (ListSessionsRequest) MarshalURL

func (r ListSessionsRequest) MarshalURL() ([]byte, error)

func (*ListSessionsRequest) Populate

func (r *ListSessionsRequest) Populate(m map[string]interface{}) error

func (*ListSessionsRequest) UnmarshalJSON

func (r *ListSessionsRequest) UnmarshalJSON(data []byte) error

type ListSponsorsRequest

type ListSponsorsRequest struct {
	ConferenceID string            `json:"conference_id"`
	GroupName    jsval.MaybeString `json:"group_name" urlenc:"group_name,omitempty,string"`
	Since        jsval.MaybeString `json:"since" urlenc:"since,omitempty,string"`
	Lang         jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	Limit        jsval.MaybeInt    `json:"limit" urlenc:"limit,omitempty,int64"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListSponsorsRequest) MarshalJSON

func (r ListSponsorsRequest) MarshalJSON() ([]byte, error)

func (ListSponsorsRequest) MarshalURL

func (r ListSponsorsRequest) MarshalURL() ([]byte, error)

func (*ListSponsorsRequest) Populate

func (r *ListSponsorsRequest) Populate(m map[string]interface{}) error

func (*ListSponsorsRequest) UnmarshalJSON

func (r *ListSponsorsRequest) UnmarshalJSON(data []byte) error

type ListUserRequest

type ListUserRequest struct {
	Pattern jsval.MaybeString `json:"pattern" urlenc:"pattern,omitempty,string"`
	Since   jsval.MaybeString `json:"since" urlenc:"since,omitempty,string"`
	Lang    jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	Limit   jsval.MaybeInt    `json:"limit" urlenc:"limit,omitempty,int64"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListUserRequest) MarshalJSON

func (r ListUserRequest) MarshalJSON() ([]byte, error)

func (ListUserRequest) MarshalURL

func (r ListUserRequest) MarshalURL() ([]byte, error)

func (*ListUserRequest) Populate

func (r *ListUserRequest) Populate(m map[string]interface{}) error

func (*ListUserRequest) UnmarshalJSON

func (r *ListUserRequest) UnmarshalJSON(data []byte) error

type ListVenueRequest

type ListVenueRequest struct {
	Since jsval.MaybeString `json:"since" urlenc:"since,omitempty,string"`
	Lang  jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	Limit jsval.MaybeInt    `json:"limit" urlenc:"limit,omitempty,int64"`

	VerifiedCall bool `json:"-"`
}

+transport

func (ListVenueRequest) MarshalJSON

func (r ListVenueRequest) MarshalJSON() ([]byte, error)

func (ListVenueRequest) MarshalURL

func (r ListVenueRequest) MarshalURL() ([]byte, error)

func (*ListVenueRequest) Populate

func (r *ListVenueRequest) Populate(m map[string]interface{}) error

func (*ListVenueRequest) UnmarshalJSON

func (r *ListVenueRequest) UnmarshalJSON(data []byte) error

type LocalizedFields

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

func (*LocalizedFields) CreateLocalizedStrings

func (lf *LocalizedFields) CreateLocalizedStrings(tx *sql.Tx, parentType, parentID string) error

func (LocalizedFields) Foreach

func (lf LocalizedFields) Foreach(cb func(string, string, string) error) error

func (LocalizedFields) Get

func (lf LocalizedFields) Get(lang, key string) (string, bool)

func (LocalizedFields) GetFQKey

func (lf LocalizedFields) GetFQKey(key string) (string, bool)

func (LocalizedFields) GetPropNames

func (lf LocalizedFields) GetPropNames() ([]string, error)

func (LocalizedFields) GetPropValue

func (lf LocalizedFields) GetPropValue(s string) (interface{}, error)

func (LocalizedFields) Languages

func (lf LocalizedFields) Languages() []string

func (LocalizedFields) Len

func (lf LocalizedFields) Len() int

func (LocalizedFields) MarshalJSON

func (lf LocalizedFields) MarshalJSON() ([]byte, error)

func (*LocalizedFields) Set

func (lf *LocalizedFields) Set(lang, key, value string) error

type LocalizedString

type LocalizedString struct {
	ParentID   string // EID of the parent object
	ParentType string // Type of the parent object
	Name       string
	Language   string
	Localized  string
}

+model `CreateRequest:"false" UpdateRequest:"false" Update:"false" Delete:"false" Lookup:"false" LookupRequest:"false"`

func (*LocalizedString) ToRow

func (v *LocalizedString) ToRow(vdb *db.LocalizedString) error

type LookupBlogEntryRequest

type LookupBlogEntryRequest struct {
	ID string `json:"id"`
}

+transport

func (LookupBlogEntryRequest) MarshalJSON

func (r LookupBlogEntryRequest) MarshalJSON() ([]byte, error)

func (LookupBlogEntryRequest) MarshalURL

func (r LookupBlogEntryRequest) MarshalURL() ([]byte, error)

func (*LookupBlogEntryRequest) Populate

func (r *LookupBlogEntryRequest) Populate(m map[string]interface{}) error

func (*LookupBlogEntryRequest) UnmarshalJSON

func (r *LookupBlogEntryRequest) UnmarshalJSON(data []byte) error

type LookupClientRequest

type LookupClientRequest struct {
	ID string `json:"id"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupClientRequest) MarshalJSON

func (r LookupClientRequest) MarshalJSON() ([]byte, error)

func (LookupClientRequest) MarshalURL

func (r LookupClientRequest) MarshalURL() ([]byte, error)

func (*LookupClientRequest) Populate

func (r *LookupClientRequest) Populate(m map[string]interface{}) error

func (*LookupClientRequest) UnmarshalJSON

func (r *LookupClientRequest) UnmarshalJSON(data []byte) error

type LookupConferenceBySlugRequest

type LookupConferenceBySlugRequest struct {
	Slug string            `json:"slug"`
	Lang jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupConferenceBySlugRequest) MarshalJSON

func (r LookupConferenceBySlugRequest) MarshalJSON() ([]byte, error)

func (LookupConferenceBySlugRequest) MarshalURL

func (r LookupConferenceBySlugRequest) MarshalURL() ([]byte, error)

func (*LookupConferenceBySlugRequest) Populate

func (r *LookupConferenceBySlugRequest) Populate(m map[string]interface{}) error

func (*LookupConferenceBySlugRequest) UnmarshalJSON

func (r *LookupConferenceBySlugRequest) UnmarshalJSON(data []byte) error

type LookupConferenceComponentRequest

type LookupConferenceComponentRequest struct {
	ID   string            `json:"id" urlenc:"id"`
	Lang jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupConferenceComponentRequest) MarshalJSON

func (r LookupConferenceComponentRequest) MarshalJSON() ([]byte, error)

func (LookupConferenceComponentRequest) MarshalURL

func (r LookupConferenceComponentRequest) MarshalURL() ([]byte, error)

func (*LookupConferenceComponentRequest) Populate

func (r *LookupConferenceComponentRequest) Populate(m map[string]interface{}) error

func (*LookupConferenceComponentRequest) UnmarshalJSON

func (r *LookupConferenceComponentRequest) UnmarshalJSON(data []byte) error

type LookupConferenceRequest

type LookupConferenceRequest struct {
	ID   string            `json:"id" urlenc:"id"`
	Lang jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupConferenceRequest) MarshalJSON

func (r LookupConferenceRequest) MarshalJSON() ([]byte, error)

func (LookupConferenceRequest) MarshalURL

func (r LookupConferenceRequest) MarshalURL() ([]byte, error)

func (*LookupConferenceRequest) Populate

func (r *LookupConferenceRequest) Populate(m map[string]interface{}) error

func (*LookupConferenceRequest) UnmarshalJSON

func (r *LookupConferenceRequest) UnmarshalJSON(data []byte) error

type LookupConferenceSeriesRequest

type LookupConferenceSeriesRequest struct {
	ID   string            `json:"id"`
	Lang jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupConferenceSeriesRequest) MarshalJSON

func (r LookupConferenceSeriesRequest) MarshalJSON() ([]byte, error)

func (LookupConferenceSeriesRequest) MarshalURL

func (r LookupConferenceSeriesRequest) MarshalURL() ([]byte, error)

func (*LookupConferenceSeriesRequest) Populate

func (r *LookupConferenceSeriesRequest) Populate(m map[string]interface{}) error

func (*LookupConferenceSeriesRequest) UnmarshalJSON

func (r *LookupConferenceSeriesRequest) UnmarshalJSON(data []byte) error

type LookupExternalResourceRequest

type LookupExternalResourceRequest struct {
	ID    string            `json:"id"`
	Since jsval.MaybeString `json:"since,omitempty" urlenc:"since,omitempty,string"`
	Limit jsval.MaybeInt    `json:"limit,omitempty" urlenc:"limit,omitempty,int64"`
	Lang  jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupExternalResourceRequest) MarshalJSON

func (r LookupExternalResourceRequest) MarshalJSON() ([]byte, error)

func (LookupExternalResourceRequest) MarshalURL

func (r LookupExternalResourceRequest) MarshalURL() ([]byte, error)

func (*LookupExternalResourceRequest) Populate

func (r *LookupExternalResourceRequest) Populate(m map[string]interface{}) error

func (*LookupExternalResourceRequest) UnmarshalJSON

func (r *LookupExternalResourceRequest) UnmarshalJSON(data []byte) error

type LookupFeaturedSpeakerRequest

type LookupFeaturedSpeakerRequest struct {
	ID   string            `json:"id"`
	Lang jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupFeaturedSpeakerRequest) MarshalJSON

func (r LookupFeaturedSpeakerRequest) MarshalJSON() ([]byte, error)

func (LookupFeaturedSpeakerRequest) MarshalURL

func (r LookupFeaturedSpeakerRequest) MarshalURL() ([]byte, error)

func (*LookupFeaturedSpeakerRequest) Populate

func (r *LookupFeaturedSpeakerRequest) Populate(m map[string]interface{}) error

func (*LookupFeaturedSpeakerRequest) UnmarshalJSON

func (r *LookupFeaturedSpeakerRequest) UnmarshalJSON(data []byte) error

type LookupQuestionRequest

type LookupQuestionRequest struct {
	ID string `json:"id"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupQuestionRequest) MarshalJSON

func (r LookupQuestionRequest) MarshalJSON() ([]byte, error)

func (LookupQuestionRequest) MarshalURL

func (r LookupQuestionRequest) MarshalURL() ([]byte, error)

func (*LookupQuestionRequest) Populate

func (r *LookupQuestionRequest) Populate(m map[string]interface{}) error

func (*LookupQuestionRequest) UnmarshalJSON

func (r *LookupQuestionRequest) UnmarshalJSON(data []byte) error

type LookupRoomRequest

type LookupRoomRequest struct {
	ID   string            `json:"id" urlenc:"id"`
	Lang jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupRoomRequest) MarshalJSON

func (r LookupRoomRequest) MarshalJSON() ([]byte, error)

func (LookupRoomRequest) MarshalURL

func (r LookupRoomRequest) MarshalURL() ([]byte, error)

func (*LookupRoomRequest) Populate

func (r *LookupRoomRequest) Populate(m map[string]interface{}) error

func (*LookupRoomRequest) UnmarshalJSON

func (r *LookupRoomRequest) UnmarshalJSON(data []byte) error

type LookupSessionRequest

type LookupSessionRequest struct {
	ID   string            `json:"id" urlenc:"id"`
	Lang jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupSessionRequest) MarshalJSON

func (r LookupSessionRequest) MarshalJSON() ([]byte, error)

func (LookupSessionRequest) MarshalURL

func (r LookupSessionRequest) MarshalURL() ([]byte, error)

func (*LookupSessionRequest) Populate

func (r *LookupSessionRequest) Populate(m map[string]interface{}) error

func (*LookupSessionRequest) UnmarshalJSON

func (r *LookupSessionRequest) UnmarshalJSON(data []byte) error

type LookupSessionTypeRequest

type LookupSessionTypeRequest struct {
	ID   string            `json:"id" urlenc:"id"`
	Lang jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupSessionTypeRequest) MarshalJSON

func (r LookupSessionTypeRequest) MarshalJSON() ([]byte, error)

func (LookupSessionTypeRequest) MarshalURL

func (r LookupSessionTypeRequest) MarshalURL() ([]byte, error)

func (*LookupSessionTypeRequest) Populate

func (r *LookupSessionTypeRequest) Populate(m map[string]interface{}) error

func (*LookupSessionTypeRequest) UnmarshalJSON

func (r *LookupSessionTypeRequest) UnmarshalJSON(data []byte) error

type LookupSponsorRequest

type LookupSponsorRequest struct {
	ID   string            `json:"id"`
	Lang jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupSponsorRequest) MarshalJSON

func (r LookupSponsorRequest) MarshalJSON() ([]byte, error)

func (LookupSponsorRequest) MarshalURL

func (r LookupSponsorRequest) MarshalURL() ([]byte, error)

func (*LookupSponsorRequest) Populate

func (r *LookupSponsorRequest) Populate(m map[string]interface{}) error

func (*LookupSponsorRequest) UnmarshalJSON

func (r *LookupSponsorRequest) UnmarshalJSON(data []byte) error

type LookupTrackRequest

type LookupTrackRequest struct {
	ID           string            `json:"id"`
	Lang         jsval.MaybeString `json:"lang" urlenc:"lang,omitempty,string"`
	VerifiedCall bool              `json:"-"`
}

+transport

func (LookupTrackRequest) MarshalJSON

func (r LookupTrackRequest) MarshalJSON() ([]byte, error)

func (LookupTrackRequest) MarshalURL

func (r LookupTrackRequest) MarshalURL() ([]byte, error)

func (*LookupTrackRequest) Populate

func (r *LookupTrackRequest) Populate(m map[string]interface{}) error

func (*LookupTrackRequest) UnmarshalJSON

func (r *LookupTrackRequest) UnmarshalJSON(data []byte) error

type LookupUserAvatarRequest

type LookupUserAvatarRequest struct {
	ID string `json:"id"`
}

+transport

func (LookupUserAvatarRequest) MarshalJSON

func (r LookupUserAvatarRequest) MarshalJSON() ([]byte, error)

func (LookupUserAvatarRequest) MarshalURL

func (r LookupUserAvatarRequest) MarshalURL() ([]byte, error)

func (*LookupUserAvatarRequest) Populate

func (r *LookupUserAvatarRequest) Populate(m map[string]interface{}) error

func (*LookupUserAvatarRequest) UnmarshalJSON

func (r *LookupUserAvatarRequest) UnmarshalJSON(data []byte) error

type LookupUserByAuthUserIDRequest

type LookupUserByAuthUserIDRequest struct {
	AuthVia    string            `json:"auth_via" urlenc:"auth_via"`
	AuthUserID string            `json:"auth_user_id" urlenc:"auth_user_id"`
	Lang       jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupUserByAuthUserIDRequest) MarshalJSON

func (r LookupUserByAuthUserIDRequest) MarshalJSON() ([]byte, error)

func (LookupUserByAuthUserIDRequest) MarshalURL

func (r LookupUserByAuthUserIDRequest) MarshalURL() ([]byte, error)

func (*LookupUserByAuthUserIDRequest) Populate

func (r *LookupUserByAuthUserIDRequest) Populate(m map[string]interface{}) error

func (*LookupUserByAuthUserIDRequest) UnmarshalJSON

func (r *LookupUserByAuthUserIDRequest) UnmarshalJSON(data []byte) error

type LookupUserRequest

type LookupUserRequest struct {
	ID   string            `json:"id" urlenc:"id"`
	Lang jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupUserRequest) MarshalJSON

func (r LookupUserRequest) MarshalJSON() ([]byte, error)

func (LookupUserRequest) MarshalURL

func (r LookupUserRequest) MarshalURL() ([]byte, error)

func (*LookupUserRequest) Populate

func (r *LookupUserRequest) Populate(m map[string]interface{}) error

func (*LookupUserRequest) UnmarshalJSON

func (r *LookupUserRequest) UnmarshalJSON(data []byte) error

type LookupVenueRequest

type LookupVenueRequest struct {
	ID   string            `json:"id" urlenc:"id"`
	Lang jsval.MaybeString `json:"lang,omitempty" urlenc:"lang,omitempty,string"`

	VerifiedCall bool `json:"-"`
}

+transport

func (LookupVenueRequest) MarshalJSON

func (r LookupVenueRequest) MarshalJSON() ([]byte, error)

func (LookupVenueRequest) MarshalURL

func (r LookupVenueRequest) MarshalURL() ([]byte, error)

func (*LookupVenueRequest) Populate

func (r *LookupVenueRequest) Populate(m map[string]interface{}) error

func (*LookupVenueRequest) UnmarshalJSON

func (r *LookupVenueRequest) UnmarshalJSON(data []byte) error

type MaybeJSONTime

type MaybeJSONTime struct {
	JSONTime
	ValidFlag bool
}

func (*MaybeJSONTime) Reset

func (t *MaybeJSONTime) Reset()

func (*MaybeJSONTime) Set

func (t *MaybeJSONTime) Set(x interface{}) error

func (*MaybeJSONTime) UnmarshalJSON

func (t *MaybeJSONTime) UnmarshalJSON(buf []byte) error

func (MaybeJSONTime) Valid

func (t MaybeJSONTime) Valid() bool

func (MaybeJSONTime) Value

func (t MaybeJSONTime) Value() interface{}

type ObjectID

type ObjectID struct {
	ID   string `json:"id"`
	Type string `json:"type"`
}

ObjectID is used to return the ID of a newly created object

type Question

type Question struct {
	ID        string
	SessionID string
	Body      string
}

+model

func (*Question) FromRow

func (v *Question) FromRow(vdb *db.Question) error

func (*Question) Load

func (v *Question) Load(tx *sql.Tx, id string) (err error)

func (*Question) ToRow

func (v *Question) ToRow(vdb *db.Question) error

type Room

type Room struct {
	LocalizedFields `json:"-"`
	ID              string `json:"id"`
	VenueID         string `json:"venue_id"`
	Name            string `json:"name" l10n:"true"`
	Capacity        uint   `json:"capacity"`
}

+model

func (*Room) FromRow

func (v *Room) FromRow(vdb *db.Room) error

func (*Room) Load

func (v *Room) Load(tx *sql.Tx, id string) (err error)

func (Room) MarshalJSON

func (v Room) MarshalJSON() ([]byte, error)

func (*Room) ToRow

func (v *Room) ToRow(vdb *db.Room) error

type RoomList

type RoomList []Room

func (*RoomList) LoadForVenue

func (v *RoomList) LoadForVenue(tx *sql.Tx, venueID, since string, limit int) error

type SendAllSelectionResultNotificationRequest

type SendAllSelectionResultNotificationRequest struct {
	Force        bool   `json:"force"`         // true to force sending notification after we have already done so for this session
	ConferenceID string `json:"conference_id"` // ID of the conference to which we're making the notification

	VerifiedCall bool `json:"-"`
}

+transport

func (SendAllSelectionResultNotificationRequest) MarshalJSON

func (SendAllSelectionResultNotificationRequest) MarshalURL

func (*SendAllSelectionResultNotificationRequest) Populate

func (r *SendAllSelectionResultNotificationRequest) Populate(m map[string]interface{}) error

func (*SendAllSelectionResultNotificationRequest) UnmarshalJSON

func (r *SendAllSelectionResultNotificationRequest) UnmarshalJSON(data []byte) error

type SendAllSelectionResultNotificationResponse

type SendAllSelectionResultNotificationResponse struct {
	Message string `json:"message"`
}

+transport

func (SendAllSelectionResultNotificationResponse) MarshalJSON

func (SendAllSelectionResultNotificationResponse) MarshalURL

func (*SendAllSelectionResultNotificationResponse) Populate

func (r *SendAllSelectionResultNotificationResponse) Populate(m map[string]interface{}) error

func (*SendAllSelectionResultNotificationResponse) UnmarshalJSON

func (r *SendAllSelectionResultNotificationResponse) UnmarshalJSON(data []byte) error

type SendSelectionResultNotificationRequest

type SendSelectionResultNotificationRequest struct {
	Force     bool   `json:"force"`      // true to force sending notification after we have already done so for this session
	SessionID string `json:"session_id"` // ID of the session to which we're making the notification

	VerifiedCall bool `json:"-"`
}

+transport

func (SendSelectionResultNotificationRequest) MarshalJSON

func (r SendSelectionResultNotificationRequest) MarshalJSON() ([]byte, error)

func (SendSelectionResultNotificationRequest) MarshalURL

func (*SendSelectionResultNotificationRequest) Populate

func (r *SendSelectionResultNotificationRequest) Populate(m map[string]interface{}) error

func (*SendSelectionResultNotificationRequest) UnmarshalJSON

func (r *SendSelectionResultNotificationRequest) UnmarshalJSON(data []byte) error

type SendSelectionResultNotificationResponse

type SendSelectionResultNotificationResponse struct {
	Message string `json:"message"`
}

+transport

func (SendSelectionResultNotificationResponse) MarshalJSON

func (r SendSelectionResultNotificationResponse) MarshalJSON() ([]byte, error)

func (SendSelectionResultNotificationResponse) MarshalURL

func (*SendSelectionResultNotificationResponse) Populate

func (r *SendSelectionResultNotificationResponse) Populate(m map[string]interface{}) error

func (*SendSelectionResultNotificationResponse) UnmarshalJSON

func (r *SendSelectionResultNotificationResponse) UnmarshalJSON(data []byte) error

type Session

type Session struct {
	LocalizedFields     `json:"-"`
	ID                  string       `json:"id"`
	ConferenceID        string       `json:"conference_id"`
	RoomID              string       `json:"room_id,omitempty"`
	SpeakerID           string       `json:"speaker_id"`
	SessionTypeID       string       `json:"session_type_id"`
	Title               string       `json:"title" l10n:"true"`
	Abstract            string       `json:"abstract" l10n:"true"`
	Memo                string       `json:"memo"`
	StartsOn            time.Time    `json:"starts_on,omitempty"`
	Duration            int          `json:"duration"`
	MaterialLevel       string       `json:"material_level"`
	Tags                TagString    `json:"tags,omitempty" assign:"convert"`
	Category            string       `json:"category,omitempty"`
	SelectionResultSent bool         `json:"selection_result_sent"`
	SpokenLanguage      string       `json:"spoken_language,omitempty"`
	SlideLanguage       string       `json:"slide_language,omitempty"`
	SlideSubtitles      string       `json:"slide_subtitles,omitempty"`
	SlideURL            string       `json:"slide_url,omitempty"`
	VideoURL            string       `json:"video_url,omitempty"`
	PhotoRelease        string       `json:"photo_release"`
	RecordingRelease    string       `json:"recording_release"`
	MaterialsRelease    string       `json:"materials_release"`
	SortOrder           int          `json:"-"`
	HasInterpretation   bool         `json:"has_interpretation"`
	IsVoteTarget        bool         `json:"is_vote_target"`
	Status              string       `json:"status"`
	Confirmed           bool         `json:"confirmed"`
	Room                *Room        `json:"room,omitempty" decorate:"true"`         // only populated for JSON response
	Speaker             *User        `json:"speaker,omitempty" decorate:"true"`      // only populated for JSON response
	SessionType         *SessionType `json:"session_type,omitempty" decorate:"true"` // only populated for JSON response
}

+model

func (*Session) FromRow

func (v *Session) FromRow(vdb *db.Session) error

func (*Session) Load

func (v *Session) Load(tx *sql.Tx, id string) (err error)

func (Session) MarshalJSON

func (v Session) MarshalJSON() ([]byte, error)

func (*Session) ToRow

func (v *Session) ToRow(vdb *db.Session) error

type SessionList

type SessionList []Session

type SessionType

type SessionType struct {
	LocalizedFields       `json:"-"`
	ID                    string    `json:"id"`
	ConferenceID          string    `json:"conference_id"`
	Name                  string    `json:"name" l10n:"true"`
	Abstract              string    `json:"abstract" l10n:"true"`
	Duration              int       `json:"duration"`
	SubmissionStart       time.Time `json:"submission_start,omitempty"`
	SubmissionEnd         time.Time `json:"submission_end,omitempty"`
	IsDefault             bool      `json:"is_default"`
	IsAcceptingSubmission bool      `json:"is_accepting_submission"` // only used to return an easy flag to the client
}

+model

func (*SessionType) FromRow

func (v *SessionType) FromRow(vdb *db.SessionType) error

func (*SessionType) Load

func (v *SessionType) Load(tx *sql.Tx, id string) (err error)

func (SessionType) MarshalJSON

func (v SessionType) MarshalJSON() ([]byte, error)

func (*SessionType) ToRow

func (v *SessionType) ToRow(vdb *db.SessionType) error

type SessionTypeList

type SessionTypeList []SessionType

type SetSessionVideoCoverRequest

type SetSessionVideoCoverRequest struct {
	ID            string          `json:"id"`
	MultipartForm *multipart.Form `json:"-"`
}

+transport

func (SetSessionVideoCoverRequest) MarshalJSON

func (r SetSessionVideoCoverRequest) MarshalJSON() ([]byte, error)

func (SetSessionVideoCoverRequest) MarshalURL

func (r SetSessionVideoCoverRequest) MarshalURL() ([]byte, error)

func (*SetSessionVideoCoverRequest) Populate

func (r *SetSessionVideoCoverRequest) Populate(m map[string]interface{}) error

func (*SetSessionVideoCoverRequest) UnmarshalJSON

func (r *SetSessionVideoCoverRequest) UnmarshalJSON(data []byte) error
type Sponsor struct {
	LocalizedFields `json:"-"`
	ID              string `json:"id"`
	ConferenceID    string `json:"conference_id"`
	Name            string `json:"name" l10n:"true"`
	LogoURL         string `json:"logo_url,omitempty"`
	URL             string `json:"url"`
	GroupName       string `json:"group_name"`
	SortOrder       int    `json:"sort_order"`
}

+model

func (*Sponsor) FromRow

func (v *Sponsor) FromRow(vdb *db.Sponsor) error

func (*Sponsor) Load

func (v *Sponsor) Load(tx *sql.Tx, id string) (err error)

func (Sponsor) MarshalJSON

func (v Sponsor) MarshalJSON() ([]byte, error)

func (*Sponsor) ToRow

func (v *Sponsor) ToRow(vdb *db.Sponsor) error

type SponsorList

type SponsorList []Sponsor

type TagString

type TagString string

func (TagString) MarshalJSON

func (t TagString) MarshalJSON() ([]byte, error)

func (*TagString) UnmarshalJSON

func (t *TagString) UnmarshalJSON(data []byte) error

type Track

type Track struct {
	LocalizedFields `json:"-"`
	ID              string `json:"id"`
	ConferenceID    string `json:"conference_id,omitempty"`
	RoomID          string `json:"room_id"`
	SortOrder       int    `json:"sort_order"`
	Name            string `json:"name" l10n:"true"`
}

+model

func (*Track) FromRow

func (v *Track) FromRow(vdb *db.Track) error

func (*Track) Load

func (v *Track) Load(tx *sql.Tx, id string) (err error)

func (*Track) LoadByConferenceRoom

func (v *Track) LoadByConferenceRoom(tx *sql.Tx, conferenceID, roomID string) (err error)

func (Track) MarshalJSON

func (v Track) MarshalJSON() ([]byte, error)

func (*Track) ToRow

func (v *Track) ToRow(vdb *db.Track) error

type TrackList

type TrackList []Track

type TweetAsConferenceRequest

type TweetAsConferenceRequest struct {
	ConferenceID string `json:"conference_id"`
	Tweet        string `json:"tweet"`
}

+transport

func (TweetAsConferenceRequest) MarshalJSON

func (r TweetAsConferenceRequest) MarshalJSON() ([]byte, error)

func (TweetAsConferenceRequest) MarshalURL

func (r TweetAsConferenceRequest) MarshalURL() ([]byte, error)

func (*TweetAsConferenceRequest) Populate

func (r *TweetAsConferenceRequest) Populate(m map[string]interface{}) error

func (*TweetAsConferenceRequest) UnmarshalJSON

func (r *TweetAsConferenceRequest) UnmarshalJSON(data []byte) error

type UpdateBlogEntryRequest

type UpdateBlogEntryRequest struct {
	ID     string            `json:"id"`
	Status jsval.MaybeString `json:"status,omitempty"`
	Title  jsval.MaybeString `json:"title,omitempty"`
	URL    jsval.MaybeString `json:"url,omitempty"`
}

+transport

func (UpdateBlogEntryRequest) MarshalJSON

func (r UpdateBlogEntryRequest) MarshalJSON() ([]byte, error)

func (UpdateBlogEntryRequest) MarshalURL

func (r UpdateBlogEntryRequest) MarshalURL() ([]byte, error)

func (*UpdateBlogEntryRequest) Populate

func (r *UpdateBlogEntryRequest) Populate(m map[string]interface{}) error

func (*UpdateBlogEntryRequest) UnmarshalJSON

func (r *UpdateBlogEntryRequest) UnmarshalJSON(data []byte) error

type UpdateClientRequest

type UpdateClientRequest struct {
	ID     string `json:"id"`
	Secret string `json:"secret"`
	Name   string `json:"name"`
}

+transport

func (UpdateClientRequest) MarshalJSON

func (r UpdateClientRequest) MarshalJSON() ([]byte, error)

func (UpdateClientRequest) MarshalURL

func (r UpdateClientRequest) MarshalURL() ([]byte, error)

func (*UpdateClientRequest) Populate

func (r *UpdateClientRequest) Populate(m map[string]interface{}) error

func (*UpdateClientRequest) UnmarshalJSON

func (r *UpdateClientRequest) UnmarshalJSON(data []byte) error

type UpdateConferenceComponentRequest

type UpdateConferenceComponentRequest struct {
	ID    string            `json:"id"`
	Name  jsval.MaybeString `json:"name"`
	Value jsval.MaybeString `json:"value"`
}

type UpdateConferenceRequest

type UpdateConferenceRequest struct {
	ID                        string            `json:"id"`
	Title                     jsval.MaybeString `json:"title,omitempty" l10n:"true"`
	Description               jsval.MaybeString `json:"description" l10n:"true"`
	CFPLeadText               jsval.MaybeString `json:"cfp_lead_text" l10n:"true"`
	CFPPreSubmitInstructions  jsval.MaybeString `json:"cfp_pre_submit_instructions" l10n:"true"`
	CFPPostSubmitInstructions jsval.MaybeString `json:"cfp_post_submit_instructions" l10n:"true"`
	ContactInformation        jsval.MaybeString `json:"contact_information" l10n:"true"`
	MultipartForm             *multipart.Form   `json:"-"`
	RedirectURL               jsval.MaybeString `json:"redirect_url,omitempty"`
	SeriesID                  jsval.MaybeString `json:"series_id,omitempty"`
	Slug                      jsval.MaybeString `json:"slug,omitempty"`
	SubTitle                  jsval.MaybeString `json:"sub_title,omitempty" l10n:"true"`
	Status                    jsval.MaybeString `json:"status,omitempty"`
	BlogFeedbackAvailable     jsval.MaybeBool   `json:"blog_feedback_available,omitempty"`
	TimetableAvailable        jsval.MaybeBool   `json:"timetable_available,omitempty"`
	Timezone                  jsval.MaybeString `json:"timezone,omitempty"`
	LocalizedFields           `json:"-"`

	// These fields are only used internally
	CoverURL jsval.MaybeString `json:"-"`
}

+transport

func (*UpdateConferenceRequest) GetPropNames

func (r *UpdateConferenceRequest) GetPropNames() ([]string, error)

func (UpdateConferenceRequest) MarshalJSON

func (r UpdateConferenceRequest) MarshalJSON() ([]byte, error)

func (UpdateConferenceRequest) MarshalURL

func (r UpdateConferenceRequest) MarshalURL() ([]byte, error)

func (*UpdateConferenceRequest) Populate

func (r *UpdateConferenceRequest) Populate(m map[string]interface{}) error

func (*UpdateConferenceRequest) SetPropValue

func (r *UpdateConferenceRequest) SetPropValue(s string, v interface{}) error

func (*UpdateConferenceRequest) UnmarshalJSON

func (r *UpdateConferenceRequest) UnmarshalJSON(data []byte) error

type UpdateConferenceSeriesRequest

type UpdateConferenceSeriesRequest struct {
	ID              string            `json:"id"`
	Slug            jsval.MaybeString `json:"slug"`
	Title           jsval.MaybeString `json:"title"`
	LocalizedFields `json:"-"`
}

+transport

func (UpdateConferenceSeriesRequest) MarshalJSON

func (r UpdateConferenceSeriesRequest) MarshalJSON() ([]byte, error)

func (UpdateConferenceSeriesRequest) MarshalURL

func (r UpdateConferenceSeriesRequest) MarshalURL() ([]byte, error)

func (*UpdateConferenceSeriesRequest) Populate

func (r *UpdateConferenceSeriesRequest) Populate(m map[string]interface{}) error

func (*UpdateConferenceSeriesRequest) UnmarshalJSON

func (r *UpdateConferenceSeriesRequest) UnmarshalJSON(data []byte) error

type UpdateConferenceVenueRequest

type UpdateConferenceVenueRequest struct {
	ConferenceID string
	VenueID      string
}

+transport

func (UpdateConferenceVenueRequest) MarshalJSON

func (r UpdateConferenceVenueRequest) MarshalJSON() ([]byte, error)

func (UpdateConferenceVenueRequest) MarshalURL

func (r UpdateConferenceVenueRequest) MarshalURL() ([]byte, error)

func (*UpdateConferenceVenueRequest) Populate

func (r *UpdateConferenceVenueRequest) Populate(m map[string]interface{}) error

func (*UpdateConferenceVenueRequest) UnmarshalJSON

func (r *UpdateConferenceVenueRequest) UnmarshalJSON(data []byte) error

type UpdateExternalResourceRequest

type UpdateExternalResourceRequest struct {
	ID              string            `json:"id"`
	Description     jsval.MaybeString `json:"description,omitempty" l10n:"true"`
	Title           jsval.MaybeString `json:"title,omitempty" l10n:"true"`
	URL             jsval.MaybeString `json:"url,omitempty"`
	LocalizedFields `json:"-"`
	SortOrder       jsval.MaybeInt `json:"sort_order,omitempty"`
}

+transport

func (*UpdateExternalResourceRequest) GetPropNames

func (r *UpdateExternalResourceRequest) GetPropNames() ([]string, error)

func (UpdateExternalResourceRequest) MarshalJSON

func (r UpdateExternalResourceRequest) MarshalJSON() ([]byte, error)

func (UpdateExternalResourceRequest) MarshalURL

func (r UpdateExternalResourceRequest) MarshalURL() ([]byte, error)

func (*UpdateExternalResourceRequest) Populate

func (r *UpdateExternalResourceRequest) Populate(m map[string]interface{}) error

func (*UpdateExternalResourceRequest) SetPropValue

func (r *UpdateExternalResourceRequest) SetPropValue(s string, v interface{}) error

func (*UpdateExternalResourceRequest) UnmarshalJSON

func (r *UpdateExternalResourceRequest) UnmarshalJSON(data []byte) error

type UpdateFeaturedSpeakerRequest

type UpdateFeaturedSpeakerRequest struct {
	ID              string            `json:"id"`
	SpeakerID       jsval.MaybeString `json:"speaker_id,omitempty"`
	AvatarURL       jsval.MaybeString `json:"avatar_url,omitempty"`
	DisplayName     jsval.MaybeString `json:"display_name,omitempty" l10n:"true"`
	Description     jsval.MaybeString `json:"description,omitempty" l10n:"true"`
	LocalizedFields `json:"-"`
}

+transport

func (*UpdateFeaturedSpeakerRequest) GetPropNames

func (r *UpdateFeaturedSpeakerRequest) GetPropNames() ([]string, error)

func (UpdateFeaturedSpeakerRequest) MarshalJSON

func (r UpdateFeaturedSpeakerRequest) MarshalJSON() ([]byte, error)

func (UpdateFeaturedSpeakerRequest) MarshalURL

func (r UpdateFeaturedSpeakerRequest) MarshalURL() ([]byte, error)

func (*UpdateFeaturedSpeakerRequest) Populate

func (r *UpdateFeaturedSpeakerRequest) Populate(m map[string]interface{}) error

func (*UpdateFeaturedSpeakerRequest) SetPropValue

func (r *UpdateFeaturedSpeakerRequest) SetPropValue(s string, v interface{}) error

func (*UpdateFeaturedSpeakerRequest) UnmarshalJSON

func (r *UpdateFeaturedSpeakerRequest) UnmarshalJSON(data []byte) error

type UpdateQuestionRequest

type UpdateQuestionRequest struct {
	ID        string            `json:"id" urlenc:"id"`
	SessionID jsval.MaybeString `json:"session_id" urlenc:"session_id"`
	Body      jsval.MaybeString `json:"body" urlenc:"body"`
}

+transport

func (UpdateQuestionRequest) MarshalJSON

func (r UpdateQuestionRequest) MarshalJSON() ([]byte, error)

func (UpdateQuestionRequest) MarshalURL

func (r UpdateQuestionRequest) MarshalURL() ([]byte, error)

func (*UpdateQuestionRequest) Populate

func (r *UpdateQuestionRequest) Populate(m map[string]interface{}) error

func (*UpdateQuestionRequest) UnmarshalJSON

func (r *UpdateQuestionRequest) UnmarshalJSON(data []byte) error

type UpdateRoomRequest

type UpdateRoomRequest struct {
	ID              string            `json:"id"`
	VenueID         jsval.MaybeString `json:"venue_id,omitempty"`
	Name            jsval.MaybeString `json:"name,omitempty" l10n:"true"`
	Capacity        jsval.MaybeUint   `json:"capacity,omitempty"`
	LocalizedFields `json:"-"`
}

+transport

func (*UpdateRoomRequest) GetPropNames

func (r *UpdateRoomRequest) GetPropNames() ([]string, error)

func (UpdateRoomRequest) MarshalJSON

func (r UpdateRoomRequest) MarshalJSON() ([]byte, error)

func (UpdateRoomRequest) MarshalURL

func (r UpdateRoomRequest) MarshalURL() ([]byte, error)

func (*UpdateRoomRequest) Populate

func (r *UpdateRoomRequest) Populate(m map[string]interface{}) error

func (*UpdateRoomRequest) SetPropValue

func (r *UpdateRoomRequest) SetPropValue(s string, v interface{}) error

func (*UpdateRoomRequest) UnmarshalJSON

func (r *UpdateRoomRequest) UnmarshalJSON(data []byte) error

type UpdateSessionRequest

type UpdateSessionRequest struct {
	ID                  string            `json:"id"`
	ConferenceID        jsval.MaybeString `json:"conference_id,omitempty"`
	SpeakerID           jsval.MaybeString `json:"speaker_id,omitempty"`
	SessionTypeID       jsval.MaybeString `json:"session_type_id,omitempty"`
	RoomID              jsval.MaybeString `json:"room_id,omitempty"`
	Title               jsval.MaybeString `json:"title,omitempty" l10n:"true"`
	Abstract            jsval.MaybeString `json:"abstract,omitempty" l10n:"true"`
	Memo                jsval.MaybeString `json:"memo,omitempty"`
	Duration            jsval.MaybeInt    `json:"duration,omitempty"`
	MaterialLevel       jsval.MaybeString `json:"material_level,omitempty"`
	Tags                jsval.MaybeString `json:"tags,omitempty"`
	Category            jsval.MaybeString `json:"category,omitempty"`
	SpokenLanguage      jsval.MaybeString `json:"spoken_language,omitempty"`
	SlideLanguage       jsval.MaybeString `json:"slide_language,omitempty"`
	SlideSubtitles      jsval.MaybeString `json:"slide_subtitles,omitempty"`
	SlideURL            jsval.MaybeString `json:"slide_url,omitempty"`
	VideoURL            jsval.MaybeString `json:"video_url,omitempty"`
	PhotoRelease        jsval.MaybeString `json:"photo_release,omitempty"`
	RecordingRelease    jsval.MaybeString `json:"recording_release,omitempty"`
	MaterialsRelease    jsval.MaybeString `json:"materials_release,omitempty"`
	SortOrder           jsval.MaybeInt    `json:"sort_order,omitempty"`
	HasInterpretation   jsval.MaybeBool   `json:"has_interpretation,omitempty"`
	IsVoteTarget        jsval.MaybeBool   `json:"is_vote_target,omitempty"`
	SelectionResultSent jsval.MaybeBool   `json:"selection_result_sent,omitempty"`
	Status              jsval.MaybeString `json:"status,omitempty"`
	StartsOn            jsval.MaybeTime   `json:"starts_on,omitempty"`
	Confirmed           jsval.MaybeBool   `json:"confirmed,omitempty"`
	LocalizedFields     `json:"-"`
}

+transport

func (*UpdateSessionRequest) GetPropNames

func (r *UpdateSessionRequest) GetPropNames() ([]string, error)

func (UpdateSessionRequest) MarshalJSON

func (r UpdateSessionRequest) MarshalJSON() ([]byte, error)

func (UpdateSessionRequest) MarshalURL

func (r UpdateSessionRequest) MarshalURL() ([]byte, error)

func (*UpdateSessionRequest) Populate

func (r *UpdateSessionRequest) Populate(m map[string]interface{}) error

func (*UpdateSessionRequest) SetPropValue

func (r *UpdateSessionRequest) SetPropValue(s string, v interface{}) error

func (*UpdateSessionRequest) UnmarshalJSON

func (r *UpdateSessionRequest) UnmarshalJSON(data []byte) error

type UpdateSessionTypeRequest

type UpdateSessionTypeRequest struct {
	ID              string            `json:"id"`
	Name            jsval.MaybeString `json:"name,omitempty"`
	Abstract        jsval.MaybeString `json:"abstract,omitempty"`
	Duration        jsval.MaybeInt    `json:"duration,omitempty"`
	IsDefault       jsval.MaybeBool   `json:"is_default,omitempty"`
	SubmissionStart jsval.MaybeString `json:"submission_start,omitempty"`
	SubmissionEnd   jsval.MaybeString `json:"submission_end,omitempty"`
	LocalizedFields `json:"-"`
}

+transport

func (UpdateSessionTypeRequest) MarshalJSON

func (r UpdateSessionTypeRequest) MarshalJSON() ([]byte, error)

func (UpdateSessionTypeRequest) MarshalURL

func (r UpdateSessionTypeRequest) MarshalURL() ([]byte, error)

func (*UpdateSessionTypeRequest) Populate

func (r *UpdateSessionTypeRequest) Populate(m map[string]interface{}) error

func (*UpdateSessionTypeRequest) UnmarshalJSON

func (r *UpdateSessionTypeRequest) UnmarshalJSON(data []byte) error

type UpdateSponsorRequest

type UpdateSponsorRequest struct {
	ID              string            `json:"id"`
	Name            jsval.MaybeString `json:"name,omitempty" l10n:"true"`
	URL             jsval.MaybeString `json:"url,omitempty"`
	GroupName       jsval.MaybeString `json:"group_name,omitempty"`
	MultipartForm   *multipart.Form   `json:"-"`
	SortOrder       jsval.MaybeInt    `json:"sort_order,omitempty"`
	LocalizedFields `json:"-"`
	LogoURL         jsval.MaybeString `json:"-"`
}

+transport

func (*UpdateSponsorRequest) GetPropNames

func (r *UpdateSponsorRequest) GetPropNames() ([]string, error)

func (UpdateSponsorRequest) MarshalJSON

func (r UpdateSponsorRequest) MarshalJSON() ([]byte, error)

func (UpdateSponsorRequest) MarshalURL

func (r UpdateSponsorRequest) MarshalURL() ([]byte, error)

func (*UpdateSponsorRequest) Populate

func (r *UpdateSponsorRequest) Populate(m map[string]interface{}) error

func (*UpdateSponsorRequest) SetPropValue

func (r *UpdateSponsorRequest) SetPropValue(s string, v interface{}) error

func (*UpdateSponsorRequest) UnmarshalJSON

func (r *UpdateSponsorRequest) UnmarshalJSON(data []byte) error

type UpdateTrackRequest

type UpdateTrackRequest struct {
	ID              string            `json:"id"`
	Name            jsval.MaybeString `json:"name,omitempty" l10n:"true"`
	RoomID          jsval.MaybeString `json:"room_id,omitempty"`
	SortOrder       jsval.MaybeInt    `json:"sort_order,omitempty"`
	LocalizedFields `json:"-"`
}

+transport

func (*UpdateTrackRequest) GetPropNames

func (r *UpdateTrackRequest) GetPropNames() ([]string, error)

func (UpdateTrackRequest) MarshalJSON

func (r UpdateTrackRequest) MarshalJSON() ([]byte, error)

func (UpdateTrackRequest) MarshalURL

func (r UpdateTrackRequest) MarshalURL() ([]byte, error)

func (*UpdateTrackRequest) Populate

func (r *UpdateTrackRequest) Populate(m map[string]interface{}) error

func (*UpdateTrackRequest) SetPropValue

func (r *UpdateTrackRequest) SetPropValue(s string, v interface{}) error

func (*UpdateTrackRequest) UnmarshalJSON

func (r *UpdateTrackRequest) UnmarshalJSON(data []byte) error

type UpdateUserRequest

type UpdateUserRequest struct {
	ID              string            `json:"id"`
	FirstName       jsval.MaybeString `json:"first_name,omitempty" l10n:"true"`
	LastName        jsval.MaybeString `json:"last_name,omitempty" l10n:"true"`
	Nickname        jsval.MaybeString `json:"nickname,omitempty"`
	Lang            jsval.MaybeString `json:"lang,omitempty"`
	Email           jsval.MaybeString `json:"email,omitempty"`
	AuthVia         jsval.MaybeString `json:"auth_via,omitempty"`
	AuthUserID      jsval.MaybeString `json:"auth_user_id,omitempty"`
	AvatarURL       jsval.MaybeString `json:"avatar_url,omitempty"`
	TshirtSize      jsval.MaybeString `json:"tshirt_size,omitempty"`
	LocalizedFields `json:"-"`
}

+transport

func (*UpdateUserRequest) GetPropNames

func (r *UpdateUserRequest) GetPropNames() ([]string, error)

func (UpdateUserRequest) MarshalJSON

func (r UpdateUserRequest) MarshalJSON() ([]byte, error)

func (UpdateUserRequest) MarshalURL

func (r UpdateUserRequest) MarshalURL() ([]byte, error)

func (*UpdateUserRequest) Populate

func (r *UpdateUserRequest) Populate(m map[string]interface{}) error

func (*UpdateUserRequest) SetPropValue

func (r *UpdateUserRequest) SetPropValue(s string, v interface{}) error

func (*UpdateUserRequest) UnmarshalJSON

func (r *UpdateUserRequest) UnmarshalJSON(data []byte) error

type UpdateVenueRequest

type UpdateVenueRequest struct {
	ID              string            `json:"id"`
	Name            jsval.MaybeString `json:"name,omitempty" l10n:"true"`
	Address         jsval.MaybeString `json:"address,omitempty" l10n:"true"`
	Longitude       jsval.MaybeFloat  `json:"longitude,omitempty"`
	Latitude        jsval.MaybeFloat  `json:"latitude,omitempty"`
	LocalizedFields `json:"-"`
}

+transport

func (*UpdateVenueRequest) GetPropNames

func (r *UpdateVenueRequest) GetPropNames() ([]string, error)

func (UpdateVenueRequest) MarshalJSON

func (r UpdateVenueRequest) MarshalJSON() ([]byte, error)

func (UpdateVenueRequest) MarshalURL

func (r UpdateVenueRequest) MarshalURL() ([]byte, error)

func (*UpdateVenueRequest) Populate

func (r *UpdateVenueRequest) Populate(m map[string]interface{}) error

func (*UpdateVenueRequest) SetPropValue

func (r *UpdateVenueRequest) SetPropValue(s string, v interface{}) error

func (*UpdateVenueRequest) UnmarshalJSON

func (r *UpdateVenueRequest) UnmarshalJSON(data []byte) error

type User

type User struct {
	LocalizedFields `json:"-"`
	ID              string `json:"id"`
	AuthVia         string `json:"auth_via,omitempty"`
	AuthUserID      string `json:"auth_user_id,omitempty"`
	AvatarURL       string `json:"avatar_url,omitempty"`
	FirstName       string `json:"first_name,omitempty" l10n:"true"`
	LastName        string `json:"last_name,omitempty" l10n:"true"`
	Lang            string `json:"lang"`
	Nickname        string `json:"nickname"`
	Email           string `json:"email,omitempty"`
	TshirtSize      string `json:"tshirt_size,omitempty"`
	IsAdmin         bool   `json:"is_admin"`
	Timezone        string `json:"timezone"`
}

+model

func (*User) FromRow

func (v *User) FromRow(vdb *db.User) error

func (*User) Load

func (v *User) Load(tx *sql.Tx, id string) (err error)

func (User) MarshalJSON

func (v User) MarshalJSON() ([]byte, error)

func (*User) ToRow

func (v *User) ToRow(vdb *db.User) error

type UserList

type UserList []User

type Venue

type Venue struct {
	LocalizedFields `json:"-"`
	ID              string   `json:"id,omitempty"`
	Name            string   `json:"name" l10n:"true" decorate:"true"`
	Address         string   `json:"address" l10n:"true" decorate:"true"`
	PlaceID         string   `json:"place_id,omitempty"`
	URL             string   `json:"url,omitempty"`
	Longitude       float64  `json:"longitude,omitempty"`
	Latitude        float64  `json:"latitude,omitempty"`
	Rooms           RoomList `json:"rooms,omitempty"`
}

+model

func (*Venue) FromRow

func (v *Venue) FromRow(vdb *db.Venue) error

func (*Venue) Load

func (v *Venue) Load(tx *sql.Tx, id string) (err error)

func (Venue) MarshalJSON

func (v Venue) MarshalJSON() ([]byte, error)

func (*Venue) ToRow

func (v *Venue) ToRow(vdb *db.Venue) error

type VenueList

type VenueList []Venue

type VerifyUserRequest

type VerifyUserRequest struct {
	ID string `json:"id"` // ID of the user being verified
}

+transport

func (VerifyUserRequest) MarshalJSON

func (r VerifyUserRequest) MarshalJSON() ([]byte, error)

func (VerifyUserRequest) MarshalURL

func (r VerifyUserRequest) MarshalURL() ([]byte, error)

func (*VerifyUserRequest) Populate

func (r *VerifyUserRequest) Populate(m map[string]interface{}) error

func (*VerifyUserRequest) UnmarshalJSON

func (r *VerifyUserRequest) UnmarshalJSON(data []byte) error

type WallClock

type WallClock struct {
	Valid bool // True if set
	// contains filtered or unexported fields
}

WallClock is used to store simple time HH:MM

func NewWallClock

func NewWallClock(h, m int) WallClock

func (WallClock) MarshalJSON

func (w WallClock) MarshalJSON() ([]byte, error)

func (*WallClock) Parse

func (w *WallClock) Parse(s string) error

func (WallClock) String

func (w WallClock) String() string

func (*WallClock) UnmarshalJSON

func (w *WallClock) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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