model

package
v0.0.0-...-2d5d09f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JST, _ = time.LoadLocation("Asia/Tokyo")

JST represents Asia/Tokyo timezone

Functions

This section is empty.

Types

type Event

type Event struct {
	Title       string     `json:"title"`
	URL         string     `json:"url"`
	Address     string     `json:"address"`
	UpdatedAt   *time.Time `json:"updated_at"`
	PublishedAt *time.Time `json:"published_at"`
	StartedAt   *time.Time `json:"started_at"`
	EndedAt     *time.Time `json:"ended_at"`
}

Event represents event data

type Group

type Group struct {
	Title     string     `json:"title"`
	URL       string     `json:"url"`
	UpdatedAt *time.Time `json:"updated_at"`
	Events    []Event    `json:"events"`
}

Group represents group info

func (*Group) MaxEventsUpdatedAt

func (g *Group) MaxEventsUpdatedAt() *time.Time

MaxEventsUpdatedAt returns max UpdatedAt in Events

func (*Group) ToAtom

func (g *Group) ToAtom() (string, error)

ToAtom return atom formatted group

func (*Group) ToIcal

func (g *Group) ToIcal() string

ToIcal return ical formatted group

func (*Group) ToJSON

func (g *Group) ToJSON() (string, error)

ToJSON return json formatted group

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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