table

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RestoreFromRedis

func RestoreFromRedis(table interface{}, tableName string) error

Types

type Alarm

type Alarm struct {
	ID         string `json:"id"`
	Minute     string `json:"minute"`
	Hour       string `json:"hour"`
	DayOfMonth string `json:"day_of_month"`
	Month      string `json:"month"`
	DayOfWeek  string `json:"day_of_week"`
	WeekNum    string `json:"week_num"`
	Message    string `json:"message"`
	RoomKey    string `json:"room_key"`
}

func Alarms

func Alarms() ([]Alarm, error)

type Anniversary

type Anniversary struct {
	ID      string `json:"id"`
	Date    string `json:"date"`
	Period  string `json:"period"`
	Name    string `json:"name"`
	RoomKey string `json:"room_key"`
}

func Anniversaries

func Anniversaries() ([]Anniversary, error)

type Tables

type Tables struct {
	Alarms        []Alarm       `tableName:"alarm"`
	Anniversaries []Anniversary `tableName:"anniversary"`
}

func Initialize

func Initialize() (*Tables, error)

func (*Tables) LoadTablesFromSheet

func (ts *Tables) LoadTablesFromSheet() error

func (*Tables) SaveToRedis

func (ts *Tables) SaveToRedis() error

Jump to

Keyboard shortcuts

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