Documentation ¶ Index ¶ type Adapter func NewAdapter(url, token string) *Adapter func (a *Adapter) GetEvent(ctx context.Context, eventID int) (*domain.Event, error) type EventResponse Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Adapter ¶ type Adapter struct { // contains filtered or unexported fields } func NewAdapter ¶ func NewAdapter(url, token string) *Adapter func (*Adapter) GetEvent ¶ func (a *Adapter) GetEvent(ctx context.Context, eventID int) (*domain.Event, error) type EventResponse ¶ type EventResponse struct { ID int `json:"id"` StartsAt string `json:"starts_at"` EndsAt *string `json:"ends_at,omitempty"` Name string `json:"name"` DescriptionShort *string `json:"description_short,omitempty"` } Source Files ¶ View all Source files adapter.go event_response.go Click to show internal directories. Click to hide internal directories.