timepad

package
v0.0.0-...-96f1f9d Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

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