Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssigneeConfig ¶
type AssigneeConfig struct { Default DefaultAssigneeConfig Workspace []WorkspaceAssigneeConfig }
type BajiraConfig ¶
type BajiraConfig struct { AccessibleMode bool `toml:"accessible_mode"` CacheDirectory string `toml:"cache_directory"` ConfigDirectory string `toml:"config_directory"` DataDirectory string `toml:"data_directory"` DefaultWorkspaceId string `toml:"default_workspace_id"` Locale language.Tag `toml:"locale"` Assignee AssigneeConfig }
func GetBajiraConfig ¶
func GetBajiraConfig() (*BajiraConfig, error)
GetBajiraConfig gets the application config from the config file and sets the locale.
func GetConfigFromContext ¶
func GetConfigFromContext(ctx context.Context) (*BajiraConfig, error)
GetConfigFromContext gets the application config from the context.
type BajiraConfigFile ¶
type BajiraConfigFile struct { AccessibleMode bool `toml:"accessible_mode"` DataDirectory string `toml:"data_directory"` DefaultWorkspaceId string `toml:"default_workspace_id"` Locale string `toml:"locale"` Assignee AssigneeConfig }
type ContextConfigKey ¶
type ContextConfigKey string
type DefaultAssigneeConfig ¶
type DefaultAssigneeConfig struct {
Name string `toml:"name"`
}
type WorkspaceAssigneeConfig ¶
Click to show internal directories.
Click to hide internal directories.