Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppName = "goclockify" Version = "1.2.0" )
AppName Application Name Version Application Version
Variables ¶
View Source
var (
FilePath = xdg.New("abgeo", AppName).QueryConfig("config")
)
FilePath Configuration file path
Functions ¶
func CreateConfigFile ¶
CreateConfigFile creates the default config file
Types ¶
type Config ¶
type Config struct { ClockifyAPIToken string `json:"clockify_api_token"` KeyMapping KeyMapping `json:"key_mapping"` }
Config structure type
type KeyMapping ¶
type KeyMapping struct { Workspace WorkspaceKeyMapping `json:"workspace"` TimeEntries TimeEntriesKeyMapping `json:"time_entries"` Other OtherKeyMapping `json:"other"` }
KeyMapping the union of WorkspaceKeyMapping, TimeEntriesKeyMapping and OtherKeyMapping
type OtherKeyMapping ¶
type OtherKeyMapping struct { Quit []string `json:"quit"` CloseWindow []string `json:"close_window"` Help []string `json:"help"` }
OtherKeyMapping is a structure for general key mapping
type TimeEntriesKeyMapping ¶
type TimeEntriesKeyMapping struct { Add []string `json:"add"` Delete []string `json:"delete"` Edit []string `json:"edit"` }
TimeEntriesKeyMapping is a structure for general key mapping
type WorkspaceKeyMapping ¶
type WorkspaceKeyMapping struct {}
WorkspaceKeyMapping is a structure for workspaces key mapping
Click to show internal directories.
Click to hide internal directories.