Documentation ¶
Index ¶
- Constants
- func GetInitConfig(cmd *cobra.Command, cfgPath *string) func()
- type App
- type Config
- func (c *Config) Add(newApp App) error
- func (c *Config) Get(name string) (*App, error)
- func (c *Config) GetClient(cmd *cobra.Command) (*stream.Client, error)
- func (c *Config) GetCredentials(cmd *cobra.Command) (string, string, error)
- func (c *Config) GetDefaultAppOrExplicit(cmd *cobra.Command) (*App, error)
- func (c *Config) Remove(appName string) error
- func (c *Config) SetDefault(appName string) error
Constants ¶
View Source
const (
DefaultChatEdgeURL = "https://chat.stream-io-api.com"
)
Variables ¶
This section is empty.
Functions ¶
func GetInitConfig ¶
Types ¶
type Config ¶
type Config struct { // Default is the default configuration used for operations Default string `yaml:"default" mapstructure:"default"` Apps []App `yaml:"apps" mapstructure:"apps"` }
func (*Config) GetCredentials ¶
func (*Config) GetDefaultAppOrExplicit ¶ added in v1.2.0
func (*Config) SetDefault ¶
Click to show internal directories.
Click to hide internal directories.