Documentation ¶
Overview ¶
Package service contain objects that know how to interconnect the data from outside world (model) to internal data (db, et al).
For example, this is the only component that understands the mapping between optional incoming parameters from forms and the database row.
Index ¶
- Variables
- func Cache() *cache.Redis
- func NewTwitterClientFromToken(s string) *twitter.Client
- type BlogEntrySvc
- func (v *BlogEntrySvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.BlogEntry, ...) (err error)
- func (v *BlogEntrySvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.BlogEntry, ...) (err error)
- func (v *BlogEntrySvc) Decorate(tx *sql.Tx, m *model.BlogEntry, verifiedCall bool, lang string) (err error)
- func (v *BlogEntrySvc) Delete(tx *sql.Tx, id string) error
- func (v *BlogEntrySvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteBlogEntryRequest) (err error)
- func (v *BlogEntrySvc) Init()
- func (v *BlogEntrySvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.BlogEntryList, ...) (err error)
- func (v *BlogEntrySvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.BlogEntry, id string) (err error)
- func (v *BlogEntrySvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.BlogEntry, ...) (err error)
- func (v *BlogEntrySvc) PostCreateHook(ctx context.Context, _ *sql.Tx, vdb *db.BlogEntry) error
- func (v *BlogEntrySvc) PostDeleteHook(_ *sql.Tx, vdb *db.BlogEntry) error
- func (v *BlogEntrySvc) PostUpdateHook(_ *sql.Tx, vdb *db.BlogEntry) error
- func (v *BlogEntrySvc) Update(tx *sql.Tx, vdb *db.BlogEntry) (err error)
- func (v *BlogEntrySvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateBlogEntryRequest) (err error)
- type CallOption
- type ClientSvc
- func (v *ClientSvc) Authenticate(ctx context.Context, clientID, clientSecret string) (err error)
- func (v *ClientSvc) CreateClientSession(ctx context.Context, tx *sql.Tx, sessionID, clientID, userID string, ...) (err error)
- func (v *ClientSvc) Delete(tx *sql.Tx, id string) error
- func (v *ClientSvc) Init()
- func (v *ClientSvc) LoadClientSession(ctx context.Context, tx *sql.Tx, sessionID, clientID string, u *model.User) (err error)
- func (v *ClientSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Client, id string) (err error)
- func (v *ClientSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Client, ...) (err error)
- func (v *ClientSvc) Update(tx *sql.Tx, vdb *db.Client) (err error)
- type ConferenceComponentSvc
- func (v *ConferenceComponentSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceComponent, ...) (err error)
- func (v *ConferenceComponentSvc) Delete(tx *sql.Tx, id string) error
- func (v *ConferenceComponentSvc) DeleteByConferenceIDAndName(tx *sql.Tx, conferenceID string, names ...string) error
- func (v *ConferenceComponentSvc) Init()
- func (v *ConferenceComponentSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ConferenceComponent, id string) (err error)
- func (v *ConferenceComponentSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.ConferenceComponent, ...) (err error)
- func (v *ConferenceComponentSvc) Update(tx *sql.Tx, vdb *db.ConferenceComponent) (err error)
- func (v *ConferenceComponentSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, ...) (err error)
- func (v *ConferenceComponentSvc) UpsertByConferenceIDAndName(tx *sql.Tx, conferenceID string, values map[string]string) error
- type ConferenceDateSvc
- func (v *ConferenceDateSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceDate, ...) (err error)
- func (v *ConferenceDateSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.CreateConferenceDateRequest, ...) error
- func (v *ConferenceDateSvc) Delete(tx *sql.Tx, id string) error
- func (v *ConferenceDateSvc) Init()
- func (v *ConferenceDateSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ConferenceDate, id string) (err error)
- func (v *ConferenceDateSvc) Update(tx *sql.Tx, vdb *db.ConferenceDate) (err error)
- type ConferenceSeriesSvc
- func (v *ConferenceSeriesSvc) AddAdministrator(tx *sql.Tx, seriesID, userID string) error
- func (v *ConferenceSeriesSvc) AddAdministratorFromPayload(ctx context.Context, tx *sql.Tx, ...) error
- func (v *ConferenceSeriesSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceSeries, ...) (err error)
- func (v *ConferenceSeriesSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.ConferenceSeries, ...) (err error)
- func (v *ConferenceSeriesSvc) Decorate(ctx context.Context, tx *sql.Tx, c *model.ConferenceSeries, verifiedCall bool, ...) error
- func (v *ConferenceSeriesSvc) Delete(tx *sql.Tx, id string) error
- func (v *ConferenceSeriesSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceSeriesRequest) (err error)
- func (v *ConferenceSeriesSvc) Init()
- func (v *ConferenceSeriesSvc) LoadByRange(tx *sql.Tx, l *[]model.ConferenceSeries, since string, limit int) error
- func (v *ConferenceSeriesSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ConferenceSeries, id string) (err error)
- func (v *ConferenceSeriesSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.ConferenceSeries, ...) (err error)
- func (v *ConferenceSeriesSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.ConferenceSeries, lang string) error
- func (v *ConferenceSeriesSvc) Update(tx *sql.Tx, vdb *db.ConferenceSeries) (err error)
- func (v *ConferenceSeriesSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateConferenceSeriesRequest) (err error)
- type ConferenceSvc
- func (v *ConferenceSvc) AddAdministrator(tx *sql.Tx, cid, uid string) error
- func (v *ConferenceSvc) AddAdministratorFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceAdminRequest) error
- func (v *ConferenceSvc) AddCredentialFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceCredentialRequest) (err error)
- func (v *ConferenceSvc) AddDatesFromPayload(ctx context.Context, tx *sql.Tx, payload *model.CreateConferenceDateRequest) (err error)
- func (v *ConferenceSvc) AddStaffFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceStaffRequest) error
- func (v *ConferenceSvc) AddVenueFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceVenueRequest) (err error)
- func (v *ConferenceSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Conference, ...) (err error)
- func (v *ConferenceSvc) CreateDefaultSessionTypes(ctx context.Context, tx *sql.Tx, c *model.Conference) (err error)
- func (v *ConferenceSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.CreateConferenceRequest, ...) error
- func (v *ConferenceSvc) Decorate(ctx context.Context, tx *sql.Tx, c *model.Conference, verifiedCall bool, ...) (err error)
- func (v *ConferenceSvc) Delete(tx *sql.Tx, id string) error
- func (v *ConferenceSvc) DeleteAdministratorFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceAdminRequest) (err error)
- func (v *ConferenceSvc) DeleteDateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceDateRequest) error
- func (v *ConferenceSvc) DeleteStaffFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceStaffRequest) (err error)
- func (v *ConferenceSvc) DeleteVenueFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceVenueRequest) error
- func (v *ConferenceSvc) Init()
- func (v *ConferenceSvc) ListByOrganizerFromPayload(ctx context.Context, tx *sql.Tx, l *model.ConferenceList, ...) (err error)
- func (v *ConferenceSvc) ListCredentialFromPayload(ctx context.Context, tx *sql.Tx, names *[]string, ...) (err error)
- func (v *ConferenceSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, l *model.ConferenceList, ...) (err error)
- func (v *ConferenceSvc) LoadAdmins(ctx context.Context, tx *sql.Tx, cdl *model.UserList, verifiedCall bool, ...) (err error)
- func (v *ConferenceSvc) LoadByRange(tx *sql.Tx, vdbl *db.ConferenceList, since, rangeStart, rangeEnd string, ...) error
- func (v *ConferenceSvc) LoadDates(ctx context.Context, tx *sql.Tx, cdl *model.ConferenceDateList, cid string) (err error)
- func (v *ConferenceSvc) LoadStaff(ctx context.Context, tx *sql.Tx, users *model.UserList, verifiedCall bool, ...) (err error)
- func (v *ConferenceSvc) LoadTextComponents(tx *sql.Tx, c *model.Conference) error
- func (v *ConferenceSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Conference, id string) (err error)
- func (v *ConferenceSvc) LookupBySlug(ctx context.Context, tx *sql.Tx, c *model.Conference, ...) error
- func (v *ConferenceSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Conference, ...) (err error)
- func (v *ConferenceSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.Conference, lang string) error
- func (v *ConferenceSvc) TweetFromPayload(ctx context.Context, tx *sql.Tx, payload *model.TweetAsConferenceRequest) (err error)
- func (v *ConferenceSvc) Update(tx *sql.Tx, vdb *db.Conference) (err error)
- func (v *ConferenceSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateConferenceRequest) (err error)
- func (v *ConferenceSvc) UploadImagesFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateConferenceRequest) (err error)
- type ConferenceVenueSvc
- func (v *ConferenceVenueSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceVenue, ...) (err error)
- func (v *ConferenceVenueSvc) Init()
- func (v *ConferenceVenueSvc) PostCreateHook(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceVenue) error
- func (v *ConferenceVenueSvc) PostDeleteHook(tx *sql.Tx, vdb *db.ConferenceVenue) error
- func (v *ConferenceVenueSvc) PostUpdateHook(tx *sql.Tx, vdb *db.ConferenceVenue) error
- type ErrInvalidFieldType
- type ErrInvalidJSONFieldType
- type ExternalResourceSvc
- func (v *ExternalResourceSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ExternalResource, ...) (err error)
- func (v *ExternalResourceSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.ExternalResource, ...) error
- func (v *ExternalResourceSvc) Decorate(ctx context.Context, tx *sql.Tx, c *model.ExternalResource, verifiedCall bool, ...) error
- func (v *ExternalResourceSvc) Delete(tx *sql.Tx, id string) error
- func (v *ExternalResourceSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteExternalResourceRequest) error
- func (v *ExternalResourceSvc) Init()
- func (v *ExternalResourceSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.ExternalResourceList, ...) error
- func (v *ExternalResourceSvc) LoadByConferenceID(tx *sql.Tx, result *model.ExternalResourceList, cid string, verifiedCall bool, ...) (err error)
- func (v *ExternalResourceSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ExternalResource, id string) (err error)
- func (v *ExternalResourceSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.ExternalResource, ...) (err error)
- func (v *ExternalResourceSvc) PostCreateHook(ctx context.Context, _ *sql.Tx, vdb *db.ExternalResource) error
- func (v *ExternalResourceSvc) PostDeleteHook(_ *sql.Tx, vdb *db.ExternalResource) error
- func (v *ExternalResourceSvc) PostUpdateHook(_ *sql.Tx, vdb *db.ExternalResource) error
- func (v *ExternalResourceSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.ExternalResource, lang string) error
- func (v *ExternalResourceSvc) Update(tx *sql.Tx, vdb *db.ExternalResource) (err error)
- func (v *ExternalResourceSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateExternalResourceRequest) (err error)
- type FeaturedSpeakerSvc
- func (v *FeaturedSpeakerSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.FeaturedSpeaker, ...) (err error)
- func (v *FeaturedSpeakerSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddFeaturedSpeakerRequest, ...) error
- func (v *FeaturedSpeakerSvc) Decorate(ctx context.Context, tx *sql.Tx, speaker *model.FeaturedSpeaker, ...) error
- func (v *FeaturedSpeakerSvc) Delete(tx *sql.Tx, id string) error
- func (v *FeaturedSpeakerSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteFeaturedSpeakerRequest) error
- func (v *FeaturedSpeakerSvc) Init()
- func (v *FeaturedSpeakerSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.FeaturedSpeakerList, ...) error
- func (v *FeaturedSpeakerSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, cdl *model.FeaturedSpeakerList, cid string) (err error)
- func (v *FeaturedSpeakerSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.FeaturedSpeaker, id string) (err error)
- func (v *FeaturedSpeakerSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.FeaturedSpeaker, ...) (err error)
- func (v *FeaturedSpeakerSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, vdb *db.FeaturedSpeaker, ...) (err error)
- func (v *FeaturedSpeakerSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.FeaturedSpeaker, lang string) error
- func (v *FeaturedSpeakerSvc) Update(tx *sql.Tx, vdb *db.FeaturedSpeaker) (err error)
- func (v *FeaturedSpeakerSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateFeaturedSpeakerRequest) (err error)
- type GoogleStorageClient
- func (c *GoogleStorageClient) DeleteObjects(ctx context.Context, objects ObjectList) error
- func (c *GoogleStorageClient) Download(ctx context.Context, name string, dst io.Writer) error
- func (c *GoogleStorageClient) GetClient(ctx context.Context) *storage.Client
- func (c *GoogleStorageClient) List(ctx context.Context, options ...CallOption) (ObjectList, error)
- func (c *GoogleStorageClient) Move(ctx context.Context, srcName, dstName string, options ...CallOption) (err error)
- func (c *GoogleStorageClient) URLFor(fragment string) string
- func (c *GoogleStorageClient) Upload(ctx context.Context, name string, src io.Reader, options ...CallOption) (err error)
- type GoogleStorageObjectList
- type LocalizedStringSvc
- type MailLog
- type MailMessage
- type MailgunSvc
- type NullObjectList
- type NullStorage
- func (c *NullStorage) DeleteObjects(_ context.Context, _ ObjectList) error
- func (c *NullStorage) Download(_ context.Context, _ string, _ io.Writer) error
- func (c *NullStorage) List(_ context.Context, _ ...CallOption) (ObjectList, error)
- func (s *NullStorage) Move(_ context.Context, _, _ string, _ ...CallOption) error
- func (C *NullStorage) URLFor(s string) string
- func (c *NullStorage) Upload(_ context.Context, _ string, _ io.Reader, _ ...CallOption) error
- type ObjectList
- type QuestionSvc
- func (v *QuestionSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Question, ...) (err error)
- func (v *QuestionSvc) Delete(tx *sql.Tx, id string) error
- func (v *QuestionSvc) Init()
- func (v *QuestionSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Question, id string) (err error)
- func (v *QuestionSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Question, ...) (err error)
- func (v *QuestionSvc) Update(tx *sql.Tx, vdb *db.Question) (err error)
- func (v *QuestionSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateQuestionRequest) (err error)
- type RoomSvc
- func (v *RoomSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Room, ...) (err error)
- func (v *RoomSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.Room, ...) error
- func (v *RoomSvc) Decorate(ctx context.Context, tx *sql.Tx, room *model.Room, verifiedCall bool, ...) (err error)
- func (v *RoomSvc) Delete(tx *sql.Tx, id string) error
- func (v *RoomSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteRoomRequest) error
- func (v *RoomSvc) Init()
- func (v *RoomSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.RoomList, ...) error
- func (v *RoomSvc) LoadByVenueID(ctx context.Context, tx *sql.Tx, cdl *model.RoomList, venueID string) (err error)
- func (v *RoomSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Room, id string) (err error)
- func (v *RoomSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Room, ...) (err error)
- func (v *RoomSvc) PostCreateHook(ctx context.Context, tx *sql.Tx, vdb *db.Room) error
- func (v *RoomSvc) PostUpdateHook(tx *sql.Tx, vdb *db.Room) error
- func (v *RoomSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, vdb *db.Room, ...) error
- func (v *RoomSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.Room, lang string) error
- func (v *RoomSvc) Update(tx *sql.Tx, vdb *db.Room) (err error)
- func (v *RoomSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateRoomRequest) (err error)
- type SessionSvc
- func (v *SessionSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Session, ...) (err error)
- func (v *SessionSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.Session, ...) error
- func (v *SessionSvc) Decorate(ctx context.Context, tx *sql.Tx, session *model.Session, verifiedCall bool, ...) error
- func (v *SessionSvc) Delete(tx *sql.Tx, id string) error
- func (v *SessionSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteSessionRequest) (err error)
- func (v *SessionSvc) Init()
- func (v *SessionSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.SessionList, ...) (err error)
- func (v *SessionSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Session, id string) (err error)
- func (v *SessionSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Session, ...) (err error)
- func (v *SessionSvc) PostSocialServices(ctx context.Context, session *model.Session) (err error)
- func (v *SessionSvc) PostUpdateFromPayloadHook(_ context.Context, _ *sql.Tx, vdb *db.Session, _ *model.UpdateSessionRequest) error
- func (v *SessionSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, vdb *db.Session, ...) (err error)
- func (v *SessionSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.Session, lang string) error
- func (v *SessionSvc) SendSelectionResultNotificationFromPayload(ctx context.Context, tx *sql.Tx, ...) error
- func (v *SessionSvc) Update(tx *sql.Tx, vdb *db.Session) (err error)
- func (v *SessionSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateSessionRequest) (err error)
- func (v *SessionSvc) VideoID(s *model.Session) (string, error)
- type SessionTypeSvc
- func (v *SessionTypeSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.SessionType, ...) (err error)
- func (v *SessionTypeSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddSessionTypeRequest, ...) (err error)
- func (v *SessionTypeSvc) Decorate(ctx context.Context, tx *sql.Tx, st *model.SessionType, verifiedCall bool, ...) (err error)
- func (v *SessionTypeSvc) Delete(tx *sql.Tx, id string) error
- func (v *SessionTypeSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteSessionTypeRequest) (err error)
- func (v *SessionTypeSvc) Init()
- func (v *SessionTypeSvc) IsAcceptingSubmissions(tx *sql.Tx, id string) error
- func (v *SessionTypeSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.SessionTypeList, ...) (err error)
- func (v *SessionTypeSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, cdl *model.SessionTypeList, cid string) (err error)
- func (v *SessionTypeSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.SessionType, id string) (err error)
- func (v *SessionTypeSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.SessionType, ...) (err error)
- func (v *SessionTypeSvc) PostUpdateHook(tx *sql.Tx, vdb *db.SessionType) error
- func (v *SessionTypeSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, vdb *db.SessionType, ...) (err error)
- func (v *SessionTypeSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.SessionType, lang string) error
- func (v *SessionTypeSvc) Update(tx *sql.Tx, vdb *db.SessionType) (err error)
- func (v *SessionTypeSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateSessionTypeRequest) (err error)
- type SponsorSvc
- func (v *SponsorSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Sponsor, ...) (err error)
- func (v *SponsorSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddSponsorRequest, ...) (err error)
- func (v *SponsorSvc) Decorate(ctx context.Context, tx *sql.Tx, sponsor *model.Sponsor, verifiedCall bool, ...) (err error)
- func (v *SponsorSvc) Delete(tx *sql.Tx, id string) error
- func (v *SponsorSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteSponsorRequest) (err error)
- func (v *SponsorSvc) Init()
- func (v *SponsorSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.SponsorList, ...) error
- func (v *SponsorSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, cdl *model.SponsorList, cid string) (err error)
- func (v *SponsorSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Sponsor, id string) (err error)
- func (v *SponsorSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Sponsor, ...) (err error)
- func (v *SponsorSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.Sponsor, lang string) error
- func (v *SponsorSvc) Update(tx *sql.Tx, vdb *db.Sponsor) (err error)
- func (v *SponsorSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateSponsorRequest) (err error)
- type StorageClient
- type TemplateSvc
- type TrackSvc
- func (v *TrackSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Track, ...) (err error)
- func (v *TrackSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.CreateTrackRequest, ...) (err error)
- func (v *TrackSvc) Decorate(ctx context.Context, tx *sql.Tx, track *model.Track, verifiedCall bool, ...) (err error)
- func (v *TrackSvc) Delete(tx *sql.Tx, id string) error
- func (v *TrackSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteTrackRequest) (err error)
- func (v *TrackSvc) Init()
- func (v *TrackSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, result *model.TrackList, conferenceID string) (err error)
- func (v *TrackSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Track, id string) (err error)
- func (v *TrackSvc) LookupByConferenceRoom(tx *sql.Tx, m *model.Track, conferenceID, roomID string) (err error)
- func (v *TrackSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Track, ...) (err error)
- func (v *TrackSvc) PostCreateHook(ctx context.Context, _ *sql.Tx, vdb *db.Track) error
- func (v *TrackSvc) PostDeleteHook(_ *sql.Tx, vdb *db.Track) error
- func (v *TrackSvc) PostUpdateHook(_ *sql.Tx, vdb *db.Track) error
- func (v *TrackSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.Track, lang string) error
- func (v *TrackSvc) Update(tx *sql.Tx, vdb *db.Track) (err error)
- func (v *TrackSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateTrackRequest) (err error)
- type TwitterSvc
- type UserSvc
- func (v *UserSvc) ConfirmTemporaryEmailFromPayload(tx *sql.Tx, payload *model.ConfirmTemporaryEmailRequest) (err error)
- func (v *UserSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.User, ...) (err error)
- func (v *UserSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.User, ...) error
- func (v *UserSvc) CreateTemporaryEmailFromPayload(tx *sql.Tx, key *string, payload *model.CreateTemporaryEmailRequest) (err error)
- func (v *UserSvc) Decorate(ctx context.Context, tx *sql.Tx, user *model.User, verifiedCall bool, ...) error
- func (v *UserSvc) Delete(tx *sql.Tx, id string) error
- func (v *UserSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteUserRequest) (err error)
- func (v *UserSvc) GetClaimedUser(ctx context.Context, tx *sql.Tx, token, authVia string, u *model.User) (err error)
- func (v *UserSvc) Init()
- func (v *UserSvc) IsAdministrator(ctx context.Context, tx *sql.Tx, id string) error
- func (v *UserSvc) IsConferenceAdministrator(ctx context.Context, tx *sql.Tx, confID, userID string) error
- func (v *UserSvc) IsConferenceSeriesAdministrator(ctx context.Context, tx *sql.Tx, seriesID, userID string) error
- func (v *UserSvc) IsOwnerUser(ctx context.Context, tx *sql.Tx, targetID, userID string) (err error)
- func (v *UserSvc) IsSessionOwner(ctx context.Context, tx *sql.Tx, sessionID, userID string) (err error)
- func (v *UserSvc) IsSystemAdmin(ctx context.Context, tx *sql.Tx, id string) (err error)
- func (v *UserSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.UserList, ...) error
- func (v *UserSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.User, id string) (err error)
- func (v *UserSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.User, ...) (err error)
- func (v *UserSvc) LookupUserByAuthUserID(ctx context.Context, tx *sql.Tx, result *model.User, ...) error
- func (v *UserSvc) LookupUserByAuthUserIDFromPayload(ctx context.Context, tx *sql.Tx, result *model.User, ...) error
- func (v *UserSvc) PostLookupFromPayloadHook(ctx context.Context, tx *sql.Tx, m *model.User) error
- func (v *UserSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, _ *db.User, payload *model.UpdateUserRequest) error
- func (v *UserSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.User, lang string) error
- func (v *UserSvc) ShouldVerify(_ *model.User) bool
- func (v *UserSvc) Update(tx *sql.Tx, vdb *db.User) (err error)
- func (v *UserSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateUserRequest) (err error)
- func (v *UserSvc) Verify(ctx context.Context, m *model.User) (err error)
- type VenueSvc
- func (v *VenueSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Venue, ...) (err error)
- func (v *VenueSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, venue *model.Venue, ...) error
- func (v *VenueSvc) Decorate(ctx context.Context, tx *sql.Tx, venue *model.Venue, verifiedCall bool, ...) (err error)
- func (v *VenueSvc) Delete(tx *sql.Tx, id string) error
- func (v *VenueSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteVenueRequest) error
- func (v *VenueSvc) Init()
- func (v *VenueSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.VenueList, ...) error
- func (v *VenueSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, cdl *model.VenueList, cid string) (err error)
- func (v *VenueSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Venue, id string) (err error)
- func (v *VenueSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Venue, ...) (err error)
- func (v *VenueSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.Venue, lang string) error
- func (v *VenueSvc) Update(tx *sql.Tx, vdb *db.Venue) (err error)
- func (v *VenueSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateVenueRequest) (err error)
- type WithObjectAttrs
- type WithQueryPrefix
- type YoutubeSvc
Constants ¶
This section is empty.
Variables ¶
var DefaultCacheMagic = ""
var DefaultCachePrefix = "octav"
var InTesting bool
InTesting grudingly exists to tell if we are running under testing mode.
var TestClaimedUser *model.User
So ugly. Need to fix
Functions ¶
Types ¶
type BlogEntrySvc ¶
type BlogEntrySvc struct{}
+PostCreateHook +PostUpdateHook +PostDeleteHook
func BlogEntry ¶
func BlogEntry() *BlogEntrySvc
func (*BlogEntrySvc) Create ¶
func (v *BlogEntrySvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.BlogEntry, payload *model.CreateBlogEntryRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*BlogEntrySvc) CreateFromPayload ¶
func (v *BlogEntrySvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.BlogEntry, payload *model.CreateBlogEntryRequest) (err error)
func (*BlogEntrySvc) DeleteFromPayload ¶
func (v *BlogEntrySvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteBlogEntryRequest) (err error)
func (*BlogEntrySvc) Init ¶
func (v *BlogEntrySvc) Init()
func (*BlogEntrySvc) ListFromPayload ¶
func (v *BlogEntrySvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.BlogEntryList, payload *model.ListBlogEntriesRequest) (err error)
func (*BlogEntrySvc) LookupFromPayload ¶
func (v *BlogEntrySvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.BlogEntry, payload *model.LookupBlogEntryRequest) (err error)
func (*BlogEntrySvc) PostCreateHook ¶
func (*BlogEntrySvc) PostDeleteHook ¶
func (*BlogEntrySvc) PostUpdateHook ¶
func (*BlogEntrySvc) UpdateFromPayload ¶
func (v *BlogEntrySvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateBlogEntryRequest) (err error)
type CallOption ¶
type CallOption interface {
Get() interface{}
}
type ClientSvc ¶
type ClientSvc struct{}
func (*ClientSvc) Authenticate ¶
func (*ClientSvc) CreateClientSession ¶
func (*ClientSvc) LoadClientSession ¶
func (*ClientSvc) LookupFromPayload ¶
type ConferenceComponentSvc ¶
type ConferenceComponentSvc struct{}
func ConferenceComponent ¶
func ConferenceComponent() *ConferenceComponentSvc
func (*ConferenceComponentSvc) Create ¶
func (v *ConferenceComponentSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceComponent, payload *model.CreateConferenceComponentRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*ConferenceComponentSvc) Delete ¶
func (v *ConferenceComponentSvc) Delete(tx *sql.Tx, id string) error
func (*ConferenceComponentSvc) DeleteByConferenceIDAndName ¶
func (*ConferenceComponentSvc) Init ¶
func (v *ConferenceComponentSvc) Init()
func (*ConferenceComponentSvc) Lookup ¶
func (v *ConferenceComponentSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ConferenceComponent, id string) (err error)
func (*ConferenceComponentSvc) LookupFromPayload ¶
func (v *ConferenceComponentSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.ConferenceComponent, payload *model.LookupConferenceComponentRequest) (err error)
func (*ConferenceComponentSvc) Update ¶
func (v *ConferenceComponentSvc) Update(tx *sql.Tx, vdb *db.ConferenceComponent) (err error)
func (*ConferenceComponentSvc) UpdateFromPayload ¶
func (v *ConferenceComponentSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateConferenceComponentRequest) (err error)
func (*ConferenceComponentSvc) UpsertByConferenceIDAndName ¶
type ConferenceDateSvc ¶
type ConferenceDateSvc struct{}
func ConferenceDate ¶
func ConferenceDate() *ConferenceDateSvc
func (*ConferenceDateSvc) Create ¶
func (v *ConferenceDateSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceDate, payload *model.CreateConferenceDateRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*ConferenceDateSvc) CreateFromPayload ¶
func (v *ConferenceDateSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.CreateConferenceDateRequest, result *model.ConferenceDate) error
func (*ConferenceDateSvc) Init ¶
func (v *ConferenceDateSvc) Init()
func (*ConferenceDateSvc) Lookup ¶
func (v *ConferenceDateSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ConferenceDate, id string) (err error)
func (*ConferenceDateSvc) Update ¶
func (v *ConferenceDateSvc) Update(tx *sql.Tx, vdb *db.ConferenceDate) (err error)
type ConferenceSeriesSvc ¶
type ConferenceSeriesSvc struct{}
func ConferenceSeries ¶
func ConferenceSeries() *ConferenceSeriesSvc
func (*ConferenceSeriesSvc) AddAdministrator ¶
func (v *ConferenceSeriesSvc) AddAdministrator(tx *sql.Tx, seriesID, userID string) error
func (*ConferenceSeriesSvc) AddAdministratorFromPayload ¶
func (v *ConferenceSeriesSvc) AddAdministratorFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceSeriesAdminRequest) error
func (*ConferenceSeriesSvc) Create ¶
func (v *ConferenceSeriesSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceSeries, payload *model.CreateConferenceSeriesRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*ConferenceSeriesSvc) CreateFromPayload ¶
func (v *ConferenceSeriesSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.ConferenceSeries, payload *model.CreateConferenceSeriesRequest) (err error)
CreateFromPayload adds extra logic around Create to verify data and create accessory data.
func (*ConferenceSeriesSvc) Decorate ¶
func (v *ConferenceSeriesSvc) Decorate(ctx context.Context, tx *sql.Tx, c *model.ConferenceSeries, verifiedCall bool, lang string) error
func (*ConferenceSeriesSvc) Delete ¶
func (v *ConferenceSeriesSvc) Delete(tx *sql.Tx, id string) error
func (*ConferenceSeriesSvc) DeleteFromPayload ¶
func (v *ConferenceSeriesSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceSeriesRequest) (err error)
func (*ConferenceSeriesSvc) Init ¶
func (v *ConferenceSeriesSvc) Init()
func (*ConferenceSeriesSvc) LoadByRange ¶
func (v *ConferenceSeriesSvc) LoadByRange(tx *sql.Tx, l *[]model.ConferenceSeries, since string, limit int) error
func (*ConferenceSeriesSvc) Lookup ¶
func (v *ConferenceSeriesSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ConferenceSeries, id string) (err error)
func (*ConferenceSeriesSvc) LookupFromPayload ¶
func (v *ConferenceSeriesSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.ConferenceSeries, payload *model.LookupConferenceSeriesRequest) (err error)
func (*ConferenceSeriesSvc) ReplaceL10NStrings ¶
func (v *ConferenceSeriesSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.ConferenceSeries, lang string) error
func (*ConferenceSeriesSvc) Update ¶
func (v *ConferenceSeriesSvc) Update(tx *sql.Tx, vdb *db.ConferenceSeries) (err error)
func (*ConferenceSeriesSvc) UpdateFromPayload ¶
func (v *ConferenceSeriesSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateConferenceSeriesRequest) (err error)
type ConferenceSvc ¶
type ConferenceSvc struct {
// contains filtered or unexported fields
}
func Conference ¶
func Conference() *ConferenceSvc
func (*ConferenceSvc) AddAdministrator ¶
func (v *ConferenceSvc) AddAdministrator(tx *sql.Tx, cid, uid string) error
func (*ConferenceSvc) AddAdministratorFromPayload ¶
func (v *ConferenceSvc) AddAdministratorFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceAdminRequest) error
func (*ConferenceSvc) AddCredentialFromPayload ¶
func (v *ConferenceSvc) AddCredentialFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceCredentialRequest) (err error)
func (*ConferenceSvc) AddDatesFromPayload ¶
func (v *ConferenceSvc) AddDatesFromPayload(ctx context.Context, tx *sql.Tx, payload *model.CreateConferenceDateRequest) (err error)
func (*ConferenceSvc) AddStaffFromPayload ¶
func (v *ConferenceSvc) AddStaffFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceStaffRequest) error
func (*ConferenceSvc) AddVenueFromPayload ¶
func (v *ConferenceSvc) AddVenueFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddConferenceVenueRequest) (err error)
func (*ConferenceSvc) Create ¶
func (v *ConferenceSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Conference, payload *model.CreateConferenceRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*ConferenceSvc) CreateDefaultSessionTypes ¶
func (v *ConferenceSvc) CreateDefaultSessionTypes(ctx context.Context, tx *sql.Tx, c *model.Conference) (err error)
func (*ConferenceSvc) CreateFromPayload ¶
func (v *ConferenceSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.CreateConferenceRequest, result *model.Conference) error
func (*ConferenceSvc) Decorate ¶
func (v *ConferenceSvc) Decorate(ctx context.Context, tx *sql.Tx, c *model.Conference, verifiedCall bool, lang string) (err error)
func (*ConferenceSvc) DeleteAdministratorFromPayload ¶
func (v *ConferenceSvc) DeleteAdministratorFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceAdminRequest) (err error)
func (*ConferenceSvc) DeleteDateFromPayload ¶
func (v *ConferenceSvc) DeleteDateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceDateRequest) error
func (*ConferenceSvc) DeleteStaffFromPayload ¶
func (v *ConferenceSvc) DeleteStaffFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceStaffRequest) (err error)
func (*ConferenceSvc) DeleteVenueFromPayload ¶
func (v *ConferenceSvc) DeleteVenueFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteConferenceVenueRequest) error
func (*ConferenceSvc) Init ¶
func (v *ConferenceSvc) Init()
func (*ConferenceSvc) ListByOrganizerFromPayload ¶
func (v *ConferenceSvc) ListByOrganizerFromPayload(ctx context.Context, tx *sql.Tx, l *model.ConferenceList, payload *model.ListConferencesByOrganizerRequest) (err error)
func (*ConferenceSvc) ListCredentialFromPayload ¶
func (v *ConferenceSvc) ListCredentialFromPayload(ctx context.Context, tx *sql.Tx, names *[]string, payload *model.ListConferenceCredentialRequest) (err error)
func (*ConferenceSvc) ListFromPayload ¶
func (v *ConferenceSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, l *model.ConferenceList, payload *model.ListConferenceRequest) (err error)
func (*ConferenceSvc) LoadAdmins ¶
func (*ConferenceSvc) LoadByRange ¶
func (v *ConferenceSvc) LoadByRange(tx *sql.Tx, vdbl *db.ConferenceList, since, rangeStart, rangeEnd string, limit int) error
func (*ConferenceSvc) LoadDates ¶
func (v *ConferenceSvc) LoadDates(ctx context.Context, tx *sql.Tx, cdl *model.ConferenceDateList, cid string) (err error)
func (*ConferenceSvc) LoadTextComponents ¶
func (v *ConferenceSvc) LoadTextComponents(tx *sql.Tx, c *model.Conference) error
func (*ConferenceSvc) Lookup ¶
func (v *ConferenceSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.Conference, id string) (err error)
func (*ConferenceSvc) LookupBySlug ¶
func (v *ConferenceSvc) LookupBySlug(ctx context.Context, tx *sql.Tx, c *model.Conference, payload *model.LookupConferenceBySlugRequest) error
func (*ConferenceSvc) LookupFromPayload ¶
func (v *ConferenceSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Conference, payload *model.LookupConferenceRequest) (err error)
func (*ConferenceSvc) ReplaceL10NStrings ¶
func (v *ConferenceSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.Conference, lang string) error
func (*ConferenceSvc) TweetFromPayload ¶
func (v *ConferenceSvc) TweetFromPayload(ctx context.Context, tx *sql.Tx, payload *model.TweetAsConferenceRequest) (err error)
func (*ConferenceSvc) Update ¶
func (v *ConferenceSvc) Update(tx *sql.Tx, vdb *db.Conference) (err error)
func (*ConferenceSvc) UpdateFromPayload ¶
func (v *ConferenceSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateConferenceRequest) (err error)
func (*ConferenceSvc) UploadImagesFromPayload ¶
func (v *ConferenceSvc) UploadImagesFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateConferenceRequest) (err error)
type ConferenceVenueSvc ¶
type ConferenceVenueSvc struct{}
+PostCreateHook +PostUpdateHook +PostDeleteHook
func ConferenceVenue ¶
func ConferenceVenue() *ConferenceVenueSvc
func (*ConferenceVenueSvc) Create ¶
func (v *ConferenceVenueSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceVenue, payload *model.CreateConferenceVenueRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*ConferenceVenueSvc) Init ¶
func (v *ConferenceVenueSvc) Init()
func (*ConferenceVenueSvc) PostCreateHook ¶
func (v *ConferenceVenueSvc) PostCreateHook(ctx context.Context, tx *sql.Tx, vdb *db.ConferenceVenue) error
func (*ConferenceVenueSvc) PostDeleteHook ¶
func (v *ConferenceVenueSvc) PostDeleteHook(tx *sql.Tx, vdb *db.ConferenceVenue) error
func (*ConferenceVenueSvc) PostUpdateHook ¶
func (v *ConferenceVenueSvc) PostUpdateHook(tx *sql.Tx, vdb *db.ConferenceVenue) error
type ErrInvalidFieldType ¶
type ErrInvalidFieldType struct {
Field string
}
func (ErrInvalidFieldType) Error ¶
func (e ErrInvalidFieldType) Error() string
type ErrInvalidJSONFieldType ¶
type ErrInvalidJSONFieldType struct {
Field string
}
func (ErrInvalidJSONFieldType) Error ¶
func (e ErrInvalidJSONFieldType) Error() string
type ExternalResourceSvc ¶
type ExternalResourceSvc struct{}
+PostCreateHook +PostUpdateHook +PostDeleteHook
func ExternalResource ¶
func ExternalResource() *ExternalResourceSvc
func (*ExternalResourceSvc) Create ¶
func (v *ExternalResourceSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.ExternalResource, payload *model.CreateExternalResourceRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*ExternalResourceSvc) CreateFromPayload ¶
func (v *ExternalResourceSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.ExternalResource, payload *model.CreateExternalResourceRequest) error
func (*ExternalResourceSvc) Decorate ¶
func (v *ExternalResourceSvc) Decorate(ctx context.Context, tx *sql.Tx, c *model.ExternalResource, verifiedCall bool, lang string) error
func (*ExternalResourceSvc) Delete ¶
func (v *ExternalResourceSvc) Delete(tx *sql.Tx, id string) error
func (*ExternalResourceSvc) DeleteFromPayload ¶
func (v *ExternalResourceSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteExternalResourceRequest) error
func (*ExternalResourceSvc) Init ¶
func (v *ExternalResourceSvc) Init()
func (*ExternalResourceSvc) ListFromPayload ¶
func (v *ExternalResourceSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.ExternalResourceList, payload *model.ListExternalResourceRequest) error
func (*ExternalResourceSvc) LoadByConferenceID ¶
func (v *ExternalResourceSvc) LoadByConferenceID(tx *sql.Tx, result *model.ExternalResourceList, cid string, verifiedCall bool, lang string) (err error)
func (*ExternalResourceSvc) Lookup ¶
func (v *ExternalResourceSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.ExternalResource, id string) (err error)
func (*ExternalResourceSvc) LookupFromPayload ¶
func (v *ExternalResourceSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.ExternalResource, payload *model.LookupExternalResourceRequest) (err error)
func (*ExternalResourceSvc) PostCreateHook ¶
func (v *ExternalResourceSvc) PostCreateHook(ctx context.Context, _ *sql.Tx, vdb *db.ExternalResource) error
func (*ExternalResourceSvc) PostDeleteHook ¶
func (v *ExternalResourceSvc) PostDeleteHook(_ *sql.Tx, vdb *db.ExternalResource) error
func (*ExternalResourceSvc) PostUpdateHook ¶
func (v *ExternalResourceSvc) PostUpdateHook(_ *sql.Tx, vdb *db.ExternalResource) error
func (*ExternalResourceSvc) ReplaceL10NStrings ¶
func (v *ExternalResourceSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.ExternalResource, lang string) error
func (*ExternalResourceSvc) Update ¶
func (v *ExternalResourceSvc) Update(tx *sql.Tx, vdb *db.ExternalResource) (err error)
func (*ExternalResourceSvc) UpdateFromPayload ¶
func (v *ExternalResourceSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateExternalResourceRequest) (err error)
type FeaturedSpeakerSvc ¶
type FeaturedSpeakerSvc struct{}
+PreUpdateFromPayloadHook
func FeaturedSpeaker ¶
func FeaturedSpeaker() *FeaturedSpeakerSvc
func (*FeaturedSpeakerSvc) Create ¶
func (v *FeaturedSpeakerSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.FeaturedSpeaker, payload *model.CreateFeaturedSpeakerRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*FeaturedSpeakerSvc) CreateFromPayload ¶
func (v *FeaturedSpeakerSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddFeaturedSpeakerRequest, result *model.FeaturedSpeaker) error
func (*FeaturedSpeakerSvc) Decorate ¶
func (v *FeaturedSpeakerSvc) Decorate(ctx context.Context, tx *sql.Tx, speaker *model.FeaturedSpeaker, verifiedCall bool, lang string) error
func (*FeaturedSpeakerSvc) Delete ¶
func (v *FeaturedSpeakerSvc) Delete(tx *sql.Tx, id string) error
func (*FeaturedSpeakerSvc) DeleteFromPayload ¶
func (v *FeaturedSpeakerSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteFeaturedSpeakerRequest) error
func (*FeaturedSpeakerSvc) Init ¶
func (v *FeaturedSpeakerSvc) Init()
func (*FeaturedSpeakerSvc) ListFromPayload ¶
func (v *FeaturedSpeakerSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.FeaturedSpeakerList, payload *model.ListFeaturedSpeakersRequest) error
func (*FeaturedSpeakerSvc) LoadByConferenceID ¶
func (v *FeaturedSpeakerSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, cdl *model.FeaturedSpeakerList, cid string) (err error)
func (*FeaturedSpeakerSvc) Lookup ¶
func (v *FeaturedSpeakerSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.FeaturedSpeaker, id string) (err error)
func (*FeaturedSpeakerSvc) LookupFromPayload ¶
func (v *FeaturedSpeakerSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.FeaturedSpeaker, payload *model.LookupFeaturedSpeakerRequest) (err error)
func (*FeaturedSpeakerSvc) PreUpdateFromPayloadHook ¶
func (v *FeaturedSpeakerSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, vdb *db.FeaturedSpeaker, payload *model.UpdateFeaturedSpeakerRequest) (err error)
func (*FeaturedSpeakerSvc) ReplaceL10NStrings ¶
func (v *FeaturedSpeakerSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.FeaturedSpeaker, lang string) error
func (*FeaturedSpeakerSvc) Update ¶
func (v *FeaturedSpeakerSvc) Update(tx *sql.Tx, vdb *db.FeaturedSpeaker) (err error)
func (*FeaturedSpeakerSvc) UpdateFromPayload ¶
func (v *FeaturedSpeakerSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateFeaturedSpeakerRequest) (err error)
type GoogleStorageClient ¶
type GoogleStorageClient struct { Client *storage.Client // contains filtered or unexported fields }
func (*GoogleStorageClient) DeleteObjects ¶
func (c *GoogleStorageClient) DeleteObjects(ctx context.Context, objects ObjectList) error
func (*GoogleStorageClient) GetClient ¶
func (c *GoogleStorageClient) GetClient(ctx context.Context) *storage.Client
func (*GoogleStorageClient) List ¶
func (c *GoogleStorageClient) List(ctx context.Context, options ...CallOption) (ObjectList, error)
func (*GoogleStorageClient) Move ¶
func (c *GoogleStorageClient) Move(ctx context.Context, srcName, dstName string, options ...CallOption) (err error)
func (*GoogleStorageClient) URLFor ¶
func (c *GoogleStorageClient) URLFor(fragment string) string
func (*GoogleStorageClient) Upload ¶
func (c *GoogleStorageClient) Upload(ctx context.Context, name string, src io.Reader, options ...CallOption) (err error)
type GoogleStorageObjectList ¶
type GoogleStorageObjectList struct {
// contains filtered or unexported fields
}
func (*GoogleStorageObjectList) Error ¶
func (l *GoogleStorageObjectList) Error() error
func (*GoogleStorageObjectList) Next ¶
func (l *GoogleStorageObjectList) Next() bool
func (*GoogleStorageObjectList) Object ¶
func (l *GoogleStorageObjectList) Object() interface{}
type LocalizedStringSvc ¶
type LocalizedStringSvc struct{}
func LocalizedString ¶
func LocalizedString() *LocalizedStringSvc
func (*LocalizedStringSvc) Init ¶
func (v *LocalizedStringSvc) Init()
func (*LocalizedStringSvc) LookupFields ¶
func (v *LocalizedStringSvc) LookupFields(tx *sql.Tx, parentType, parentID, lang string, list *[]db.LocalizedString) (err error)
func (*LocalizedStringSvc) UpdateFields ¶
func (v *LocalizedStringSvc) UpdateFields(tx *sql.Tx, parentType, parentID string, fields model.LocalizedFields) (err error)
type MailMessage ¶
type MailgunSvc ¶
type MailgunSvc struct {
// contains filtered or unexported fields
}
func Mailgun ¶
func Mailgun() *MailgunSvc
func (*MailgunSvc) Init ¶
func (v *MailgunSvc) Init()
func (*MailgunSvc) Send ¶
func (v *MailgunSvc) Send(mm *MailMessage) (err error)
type NullObjectList ¶
type NullObjectList struct{}
func (NullObjectList) Error ¶
func (l NullObjectList) Error() error
func (NullObjectList) Next ¶
func (l NullObjectList) Next() bool
func (NullObjectList) Object ¶
func (l NullObjectList) Object() interface{}
type NullStorage ¶
type NullStorage struct{}
func (*NullStorage) DeleteObjects ¶
func (c *NullStorage) DeleteObjects(_ context.Context, _ ObjectList) error
func (*NullStorage) List ¶
func (c *NullStorage) List(_ context.Context, _ ...CallOption) (ObjectList, error)
func (*NullStorage) Move ¶
func (s *NullStorage) Move(_ context.Context, _, _ string, _ ...CallOption) error
func (*NullStorage) URLFor ¶
func (C *NullStorage) URLFor(s string) string
func (*NullStorage) Upload ¶
func (c *NullStorage) Upload(_ context.Context, _ string, _ io.Reader, _ ...CallOption) error
type ObjectList ¶
type QuestionSvc ¶
type QuestionSvc struct{}
func Question ¶
func Question() *QuestionSvc
func (*QuestionSvc) Create ¶
func (v *QuestionSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Question, payload *model.CreateQuestionRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*QuestionSvc) Init ¶
func (v *QuestionSvc) Init()
func (*QuestionSvc) LookupFromPayload ¶
func (v *QuestionSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Question, payload *model.LookupQuestionRequest) (err error)
func (*QuestionSvc) UpdateFromPayload ¶
func (v *QuestionSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateQuestionRequest) (err error)
type RoomSvc ¶
type RoomSvc struct{}
+PostCreateHook +PostUpdateHook +PreUpdateFromPayloadHook
func (*RoomSvc) Create ¶
func (v *RoomSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Room, payload *model.CreateRoomRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*RoomSvc) CreateFromPayload ¶
func (*RoomSvc) DeleteFromPayload ¶
func (*RoomSvc) ListFromPayload ¶
func (*RoomSvc) LoadByVenueID ¶
func (*RoomSvc) LookupFromPayload ¶
func (*RoomSvc) PostCreateHook ¶
func (*RoomSvc) PreUpdateFromPayloadHook ¶
func (*RoomSvc) ReplaceL10NStrings ¶
func (*RoomSvc) UpdateFromPayload ¶
type SessionSvc ¶
type SessionSvc struct{}
+PreUpdateFromPayloadHook +PostUpdateFromPayloadHook
func Session ¶
func Session() *SessionSvc
func (*SessionSvc) Create ¶
func (v *SessionSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Session, payload *model.CreateSessionRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*SessionSvc) CreateFromPayload ¶
func (v *SessionSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, result *model.Session, payload *model.CreateSessionRequest) error
func (*SessionSvc) DeleteFromPayload ¶
func (v *SessionSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteSessionRequest) (err error)
func (*SessionSvc) Init ¶
func (v *SessionSvc) Init()
func (*SessionSvc) ListFromPayload ¶
func (v *SessionSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.SessionList, payload *model.ListSessionsRequest) (err error)
func (*SessionSvc) LookupFromPayload ¶
func (v *SessionSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Session, payload *model.LookupSessionRequest) (err error)
func (*SessionSvc) PostSocialServices ¶
func (*SessionSvc) PostUpdateFromPayloadHook ¶
func (v *SessionSvc) PostUpdateFromPayloadHook(_ context.Context, _ *sql.Tx, vdb *db.Session, _ *model.UpdateSessionRequest) error
func (*SessionSvc) PreUpdateFromPayloadHook ¶
func (v *SessionSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, vdb *db.Session, payload *model.UpdateSessionRequest) (err error)
func (*SessionSvc) ReplaceL10NStrings ¶
func (*SessionSvc) SendSelectionResultNotificationFromPayload ¶
func (v *SessionSvc) SendSelectionResultNotificationFromPayload(ctx context.Context, tx *sql.Tx, payload *model.SendSelectionResultNotificationRequest) error
func (*SessionSvc) UpdateFromPayload ¶
func (v *SessionSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateSessionRequest) (err error)
type SessionTypeSvc ¶
type SessionTypeSvc struct{}
+PostUpdateHook
func SessionType ¶
func SessionType() *SessionTypeSvc
func (*SessionTypeSvc) Create ¶
func (v *SessionTypeSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.SessionType, payload *model.CreateSessionTypeRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*SessionTypeSvc) CreateFromPayload ¶
func (v *SessionTypeSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddSessionTypeRequest, result *model.SessionType) (err error)
func (*SessionTypeSvc) Decorate ¶
func (v *SessionTypeSvc) Decorate(ctx context.Context, tx *sql.Tx, st *model.SessionType, verifiedCall bool, lang string) (err error)
func (*SessionTypeSvc) DeleteFromPayload ¶
func (v *SessionTypeSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteSessionTypeRequest) (err error)
func (*SessionTypeSvc) Init ¶
func (v *SessionTypeSvc) Init()
func (*SessionTypeSvc) IsAcceptingSubmissions ¶
func (v *SessionTypeSvc) IsAcceptingSubmissions(tx *sql.Tx, id string) error
func (*SessionTypeSvc) ListFromPayload ¶
func (v *SessionTypeSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.SessionTypeList, payload *model.ListSessionTypesByConferenceRequest) (err error)
func (*SessionTypeSvc) LoadByConferenceID ¶
func (v *SessionTypeSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, cdl *model.SessionTypeList, cid string) (err error)
func (*SessionTypeSvc) Lookup ¶
func (v *SessionTypeSvc) Lookup(ctx context.Context, tx *sql.Tx, m *model.SessionType, id string) (err error)
func (*SessionTypeSvc) LookupFromPayload ¶
func (v *SessionTypeSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.SessionType, payload *model.LookupSessionTypeRequest) (err error)
func (*SessionTypeSvc) PostUpdateHook ¶
func (v *SessionTypeSvc) PostUpdateHook(tx *sql.Tx, vdb *db.SessionType) error
func (*SessionTypeSvc) PreUpdateFromPayloadHook ¶
func (v *SessionTypeSvc) PreUpdateFromPayloadHook(ctx context.Context, tx *sql.Tx, vdb *db.SessionType, payload *model.UpdateSessionTypeRequest) (err error)
func (*SessionTypeSvc) ReplaceL10NStrings ¶
func (v *SessionTypeSvc) ReplaceL10NStrings(tx *sql.Tx, m *model.SessionType, lang string) error
func (*SessionTypeSvc) Update ¶
func (v *SessionTypeSvc) Update(tx *sql.Tx, vdb *db.SessionType) (err error)
func (*SessionTypeSvc) UpdateFromPayload ¶
func (v *SessionTypeSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateSessionTypeRequest) (err error)
type SponsorSvc ¶
type SponsorSvc struct {
// contains filtered or unexported fields
}
func Sponsor ¶
func Sponsor() *SponsorSvc
func (*SponsorSvc) Create ¶
func (v *SponsorSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Sponsor, payload *model.CreateSponsorRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*SponsorSvc) CreateFromPayload ¶
func (v *SponsorSvc) CreateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.AddSponsorRequest, result *model.Sponsor) (err error)
func (*SponsorSvc) DeleteFromPayload ¶
func (v *SponsorSvc) DeleteFromPayload(ctx context.Context, tx *sql.Tx, payload *model.DeleteSponsorRequest) (err error)
func (*SponsorSvc) Init ¶
func (v *SponsorSvc) Init()
func (*SponsorSvc) ListFromPayload ¶
func (v *SponsorSvc) ListFromPayload(ctx context.Context, tx *sql.Tx, result *model.SponsorList, payload *model.ListSponsorsRequest) error
func (*SponsorSvc) LoadByConferenceID ¶
func (v *SponsorSvc) LoadByConferenceID(ctx context.Context, tx *sql.Tx, cdl *model.SponsorList, cid string) (err error)
func (*SponsorSvc) LookupFromPayload ¶
func (v *SponsorSvc) LookupFromPayload(ctx context.Context, tx *sql.Tx, m *model.Sponsor, payload *model.LookupSponsorRequest) (err error)
func (*SponsorSvc) ReplaceL10NStrings ¶
func (*SponsorSvc) UpdateFromPayload ¶
func (v *SponsorSvc) UpdateFromPayload(ctx context.Context, tx *sql.Tx, payload *model.UpdateSponsorRequest) (err error)
type StorageClient ¶
type StorageClient interface { URLFor(string) string List(ctx context.Context, options ...CallOption) (ObjectList, error) Move(ctx context.Context, src, dst string, options ...CallOption) error Upload(ctx context.Context, name string, src io.Reader, options ...CallOption) error Download(ctx context.Context, name string, dst io.Writer) error DeleteObjects(ctx context.Context, list ObjectList) error }
var CredentialStorage StorageClient
var MediaStorage StorageClient
type TemplateSvc ¶
type TemplateSvc struct {
// contains filtered or unexported fields
}
func Template ¶
func Template() *TemplateSvc
func (*TemplateSvc) Init ¶
func (v *TemplateSvc) Init()
type TrackSvc ¶
type TrackSvc struct{}
+PostCreateHook +PostUpdateHook +PostDeleteHook
func (*TrackSvc) Create ¶
func (v *TrackSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Track, payload *model.CreateTrackRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*TrackSvc) CreateFromPayload ¶
func (*TrackSvc) DeleteFromPayload ¶
func (*TrackSvc) LoadByConferenceID ¶
func (*TrackSvc) LookupByConferenceRoom ¶
func (*TrackSvc) LookupFromPayload ¶
func (*TrackSvc) PostCreateHook ¶
func (*TrackSvc) ReplaceL10NStrings ¶
func (*TrackSvc) UpdateFromPayload ¶
type TwitterSvc ¶
type TwitterSvc struct {
// contains filtered or unexported fields
}
func Twitter ¶
func Twitter() *TwitterSvc
func (*TwitterSvc) Init ¶
func (v *TwitterSvc) Init()
func (*TwitterSvc) TweetAsConference ¶
func (v *TwitterSvc) TweetAsConference(confID, tweet string) (err error)
type UserSvc ¶
type UserSvc struct {
EnableVerify bool
}
+PreUpdateFromPayloadHook +PostLookupFromPayloadHook
func (*UserSvc) ConfirmTemporaryEmailFromPayload ¶
func (*UserSvc) Create ¶
func (v *UserSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.User, payload *model.CreateUserRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*UserSvc) CreateFromPayload ¶
func (*UserSvc) CreateTemporaryEmailFromPayload ¶
func (*UserSvc) DeleteFromPayload ¶
func (*UserSvc) GetClaimedUser ¶
func (v *UserSvc) GetClaimedUser(ctx context.Context, tx *sql.Tx, token, authVia string, u *model.User) (err error)
ClaimedUser loads the user claimed in the access token
In order for this to work, the access token must be sent to us once. there after, we shall use sessions to keep state.
func (*UserSvc) IsAdministrator ¶
func (*UserSvc) IsConferenceAdministrator ¶
func (*UserSvc) IsConferenceSeriesAdministrator ¶
func (*UserSvc) IsOwnerUser ¶
func (*UserSvc) IsSessionOwner ¶
func (*UserSvc) IsSystemAdmin ¶
func (*UserSvc) ListFromPayload ¶
func (*UserSvc) LookupFromPayload ¶
func (*UserSvc) LookupUserByAuthUserID ¶
func (*UserSvc) LookupUserByAuthUserIDFromPayload ¶
func (*UserSvc) PostLookupFromPayloadHook ¶
func (*UserSvc) PreUpdateFromPayloadHook ¶
func (*UserSvc) ReplaceL10NStrings ¶
func (*UserSvc) UpdateFromPayload ¶
type VenueSvc ¶
type VenueSvc struct{}
func (*VenueSvc) Create ¶
func (v *VenueSvc) Create(ctx context.Context, tx *sql.Tx, vdb *db.Venue, payload *model.CreateVenueRequest) (err error)
Create takes in the transaction, the incoming payload, and a reference to a database row. The database row is initialized/populated so that the caller can use it afterwards.
func (*VenueSvc) CreateFromPayload ¶
func (*VenueSvc) DeleteFromPayload ¶
func (*VenueSvc) ListFromPayload ¶
func (*VenueSvc) LoadByConferenceID ¶
func (*VenueSvc) LookupFromPayload ¶
func (*VenueSvc) ReplaceL10NStrings ¶
func (*VenueSvc) UpdateFromPayload ¶
type WithObjectAttrs ¶
type WithObjectAttrs storage.ObjectAttrs
func (WithObjectAttrs) Get ¶
func (attr WithObjectAttrs) Get() interface{}
type WithQueryPrefix ¶
type WithQueryPrefix string
func (WithQueryPrefix) Get ¶
func (p WithQueryPrefix) Get() interface{}
type YoutubeSvc ¶
type YoutubeSvc struct { }
func Youtube ¶
func Youtube() *YoutubeSvc
func (*YoutubeSvc) UploadThumbnailFromPayload ¶
func (v *YoutubeSvc) UploadThumbnailFromPayload(ctx context.Context, tx *sql.Tx, payload *model.SetSessionVideoCoverRequest) error
Source Files ¶
- blog_entry.go
- blog_entry_gen.go
- cache.go
- client.go
- client_gen.go
- conference.go
- conference_component.go
- conference_component_gen.go
- conference_date.go
- conference_date_gen.go
- conference_gen.go
- conference_series.go
- conference_series_gen.go
- conference_venue.go
- conference_venue_gen.go
- doc.go
- errors.go
- external_resource.go
- external_resource_gen.go
- featured_speaker.go
- featured_speaker_gen.go
- gcp.go
- interface.go
- localized_string.go
- localized_string_gen.go
- mailgun.go
- question.go
- question_gen.go
- room.go
- room_gen.go
- session.go
- session_gen.go
- session_type.go
- session_type_gen.go
- sponsor.go
- sponsor_gen.go
- storage.go
- template.go
- track.go
- track_gen.go
- twitter.go
- user.go
- user_gen.go
- venue.go
- venue_gen.go
- youtube.go