utility

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEpochTime

func GetEpochTime(hrTime string) (int64, error)

func GetISO8601Time added in v0.2.0

func GetISO8601Time(hrTime string) (string, error)

Types

type Alias

type Alias struct {
	// Name of the alias
	Name   string `json:"name"`
	Status Status `json:"status"`
}

type Config

type Config struct {
	// Status
	Status Status `json:"status"`
	// Workspaces
	Workspaces []Workspace `json:"workspaces"`
	// Aliases
	Aliases []Alias `json:"aliases"`
}

func (Config) GetStatusAliases added in v0.3.0

func (config Config) GetStatusAliases() []Alias

type Status

type Status struct {
	// Status to set
	StatusMessage string `json:"message"`
	// Emoji to set
	Emoji string `json:"emoji"`
	// Time to set
	Time string `json:"time"`
	// Epoch to set
	Epoch int64 `json:"epoch"`
	// ISO8601 to set
	ISO8601 string `json:"iso8601"`
}

type Workspace

type Workspace struct {
	// Name of the workspace, this is the actual name
	Name string `json:"name"`
	// Token used for authentication
	Token string `json:"token"`
	// Type of the workspace
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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