Documentation
¶
Index ¶
Constants ¶
View Source
const ( LayoutHorizontal = "horizontal" LayoutVertical = "vertical" )
Layout constants
View Source
const (
DefaultEndpoint = "api.rootly.com"
)
View Source
const DefaultLanguage = "en_US"
View Source
const DefaultLayout = "horizontal"
View Source
const DefaultTimezone = "UTC"
Variables ¶
This section is empty.
Functions ¶
func DetectTimezone ¶
func DetectTimezone() string
DetectTimezone returns the local system timezone name. Falls back to UTC if detection fails.
func ListTimezones ¶
func ListTimezones() []string
ListTimezones returns a sorted list of available IANA timezone names. It reads from the system's zoneinfo directory.
Types ¶
type Config ¶
type Config struct {
APIKey string `yaml:"api_key"`
Endpoint string `yaml:"endpoint"`
Timezone string `yaml:"timezone"`
Language string `yaml:"language"`
Layout string `yaml:"layout"`
}
func (*Config) GetLocation ¶
GetLocation returns the time.Location for the configured timezone. Falls back to UTC if the timezone is invalid.
Click to show internal directories.
Click to hide internal directories.