calendar

package
v0.0.0-...-5863de9 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar struct {
	Name string
	// contains filtered or unexported fields
}

func New

func New(name string) *Calendar

func (*Calendar) AddEvent

func (calendar *Calendar) AddEvent(event Event)

func (*Calendar) Events

func (calendar *Calendar) Events() []Event

func (*Calendar) Serialize

func (calendar *Calendar) Serialize() []byte

type Event

type Event struct {
	Title       string
	Description string
	SenderEmail string
	SenderName  string
	Time        time.Time
}

type Storage

type Storage interface {
	Store(ctx context.Context, calendar *Calendar) error
	GetURL(ctx context.Context, name string) (string, error)
}

func NewCalendarStorage

func NewCalendarStorage(storage storage.Service) Storage

Directories

Path Synopsis
Package mock_calendar is a generated GoMock package.
Package mock_calendar is a generated GoMock package.

Jump to

Keyboard shortcuts

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