Documentation ¶
Index ¶
Constants ¶
View Source
const URL = "https://conference-hall.io"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConferenceHallClient ¶
type ConferenceHallClient struct {
// contains filtered or unexported fields
}
func NewConferenceHallClient ¶
func NewConferenceHallClient(opts ...ConferenceHallClientOption) ConferenceHallClient
func (ConferenceHallClient) Accept ¶
func (c ConferenceHallClient) Accept(talk Talk) (string, error)
func (ConferenceHallClient) GetExport ¶
func (c ConferenceHallClient) GetExport() (Export, error)
type ConferenceHallClientOption ¶
type ConferenceHallClientOption func(client *ConferenceHallClient)
func WithAPIKey ¶
func WithAPIKey(apiKey string) ConferenceHallClientOption
func WithDryRun ¶
func WithDryRun(dryRun bool) ConferenceHallClientOption
func WithEventID ¶
func WithEventID(eventID string) ConferenceHallClientOption
func WithHTTPClient ¶
func WithHTTPClient(client *http.Client) ConferenceHallClientOption
func WithURL ¶
func WithURL(url string) ConferenceHallClientOption
type ConferenceHallServer ¶
type ConferenceHallServer struct { URL string Client *http.Client AcceptedIDs []string RejectedIDs []string // contains filtered or unexported fields }
func NewConferenceHallServer ¶
func NewConferenceHallServer(eventID, apiKey, jsonPath string) (*ConferenceHallServer, func())
func (*ConferenceHallServer) ServeHTTP ¶
func (s *ConferenceHallServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Event ¶
func (Event) GetProposals ¶
type OrganizerThread ¶
type Talk ¶
type Talk struct { ID string `json:"id"` Title string `json:"title"` State string `json:"state"` Level string `json:"level"` Abstract string `json:"abstract"` Categories string `json:"categories"` // plural but holds only one category Formats string `json:"formats"` // plural but holds only one format Speakers []string `json:"speakers"` Comments string `json:"comments"` Rating float64 `json:"rating"` Loves int `json:"loves"` Hates int `json:"hates"` Language string `json:"language"` OrganizersThread []OrganizerThread `json:"organizersThread"` }
func (Talk) IsSubmitted ¶
Click to show internal directories.
Click to hide internal directories.