store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPropValueSafe

func GetPropValueSafe(ic *ical.Event, propName string) string

func ParseDateTime

func ParseDateTime(val string) time.Time

Types

type CalEvent

type CalEvent struct {
	Name        string
	Description string
	StartsAt    time.Time
	EndsAt      time.Time
	Status      string
	Location    string
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Store, error)

func (*Store) Close

func (s *Store) Close()

func (*Store) List

func (s *Store) List(startT, endT time.Time) ([]CalEvent, error)

func (*Store) Upsert

func (s *Store) Upsert(ics []ical.Event) error

Jump to

Keyboard shortcuts

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