Documentation
¶
Index ¶
- func ConfigPath() string
- func SaveToFile(conf *FileConfig) error
- type FileConfig
- func (c *FileConfig) GetShowModeText() string
- func (c *FileConfig) IsDevelopmentEnv() bool
- func (c *FileConfig) IsMockEnv() bool
- func (c *FileConfig) IsProductionEnv() bool
- func (c *FileConfig) ShowFooter() bool
- func (c *FileConfig) ShowHelp() bool
- func (c *FileConfig) ShowLimit() bool
- func (c *FileConfig) SwitchShowMode() int
- type Safe
- type SessionData
- type WindowSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
func SaveToFile ¶
func SaveToFile(conf *FileConfig) error
Types ¶
type FileConfig ¶
type FileConfig struct {
Token string `json:"personal_access_token"`
MyNodes string `json:"my_node_keys"`
Timeout uint `json:"timeout"`
ActiveTab int `json:"active_tab"`
ShowMode int `json:"show_mode"`
Env string `json:"env"`
ChooseAPIV2 bool `json:"choose_api_v2"`
}
func NewDefaultFileConfig ¶
func NewDefaultFileConfig() *FileConfig
func (*FileConfig) GetShowModeText ¶
func (c *FileConfig) GetShowModeText() string
func (*FileConfig) IsDevelopmentEnv ¶
func (c *FileConfig) IsDevelopmentEnv() bool
func (*FileConfig) IsMockEnv ¶
func (c *FileConfig) IsMockEnv() bool
func (*FileConfig) IsProductionEnv ¶
func (c *FileConfig) IsProductionEnv() bool
func (*FileConfig) ShowFooter ¶
func (c *FileConfig) ShowFooter() bool
func (*FileConfig) ShowHelp ¶
func (c *FileConfig) ShowHelp() bool
func (*FileConfig) ShowLimit ¶
func (c *FileConfig) ShowLimit() bool
func (*FileConfig) SwitchShowMode ¶
func (c *FileConfig) SwitchShowMode() int
type SessionData ¶
type WindowSize ¶
type WindowSize struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.