config

package
v0.0.0-...-bfc391e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 11 Imported by: 0

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

type WorkspaceAssigneeConfig struct {
	Name        string `toml:"name"`
	WorkspaceID string `toml:"workspace_id"`
}

Jump to

Keyboard shortcuts

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