config

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Timezone   string        `envconfig:"TIMEZONE" default:"Asia/Tokyo"`
	Recurrence int           `envconfig:"RECURRENCE" default:"2"`
	LogLevel   zapcore.Level `envconfig:"LOG_LEVEL" default:"INFO"`
	Hostname   string        `envconfig:"HOSTNAME" default:"www.fsw.tv"`
	Webhook    string        `envconfig:"SLACK_WEBHOOK"`
}

func Load

func Load() (*Config, error)

type Data added in v0.0.4

type Data struct {
	CalendarID string        `json:"calendar_id"`
	Course     course.Course `json:"course"`
	Class      class.Class   `json:"class""`
}

func (*Data) MarshalLogObject added in v0.0.23

func (d *Data) MarshalLogObject(e zapcore.ObjectEncoder) error

func (*Data) UnmarshalJSON added in v0.0.20

func (d *Data) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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