Documentation
¶
Overview ¶
File: internal/destination/prompt.go
Index ¶
- type Destination
- type Manager
- func (m *Manager) Add(name string, dest Destination) error
- func (m *Manager) Get(name string) (Destination, bool)
- func (m *Manager) List() []string
- func (m *Manager) Load() error
- func (m *Manager) Remove(name string) error
- func (m *Manager) Save() error
- func (m *Manager) Update(name string, dest Destination) error
- type Prompt
- type TokenConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct {
Type string `yaml:"type"` // slack, lineworks, custom
Token TokenConfig `yaml:"token,omitempty"`
Channel string `yaml:"channel,omitempty"`
URL string `yaml:"url,omitempty"`
}
type Prompt ¶
type Prompt struct{}
func (*Prompt) PromptDestination ¶
func (p *Prompt) PromptDestination(defaultDest *Destination) (string, Destination, error)
type TokenConfig ¶
Click to show internal directories.
Click to hide internal directories.