Documentation ¶
Index ¶
- type Gateway
- func (gateway *Gateway) Error(msg string)
- func (Gateway) ErrorWithOpts(msg string, opts MsgOpts)
- func (gateway *Gateway) Errorf(msg string, vars ...interface{})
- func (gateway *Gateway) ErrorfWithOpts(msg string, opts MsgOpts, vars ...interface{})
- func (gateway *Gateway) Info(label, value string)
- func (gateway *Gateway) InfoWithOpts(label, value string, opts MsgOpts)
- func (gateway *Gateway) SelectMany(question string, choices SelectChoiceList) ([]SelectChoice, error)
- func (gateway *Gateway) SelectManyWithOpts(question string, choices SelectChoiceList, _ SelectManyOpts) ([]SelectChoice, error)
- func (gateway *Gateway) SelectOne(question string, choices SelectChoiceList) (*SelectChoice, error)
- func (gateway *Gateway) SelectOneWithOpts(question string, choices SelectChoiceList, opts SelectOneOpts) (*SelectChoice, error)
- func (gateway *Gateway) Warn(msg string)
- func (Gateway) WarnWithOpts(msg string, opts MsgOpts)
- func (gateway *Gateway) Warnf(msg string, vars ...interface{})
- func (gateway *Gateway) WarnfWithOpts(msg string, opts MsgOpts, vars ...interface{})
- type MsgOpts
- type SelectChoice
- type SelectChoiceList
- type SelectManyOpts
- type SelectOneOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
func NewGateway() *Gateway
func (Gateway) ErrorWithOpts ¶
func (*Gateway) ErrorfWithOpts ¶
func (*Gateway) InfoWithOpts ¶
func (*Gateway) SelectMany ¶
func (gateway *Gateway) SelectMany(question string, choices SelectChoiceList) ([]SelectChoice, error)
func (*Gateway) SelectManyWithOpts ¶
func (gateway *Gateway) SelectManyWithOpts(question string, choices SelectChoiceList, _ SelectManyOpts) ([]SelectChoice, error)
func (*Gateway) SelectOne ¶
func (gateway *Gateway) SelectOne(question string, choices SelectChoiceList) (*SelectChoice, error)
func (*Gateway) SelectOneWithOpts ¶
func (gateway *Gateway) SelectOneWithOpts( question string, choices SelectChoiceList, opts SelectOneOpts, ) (*SelectChoice, error)
func (Gateway) WarnWithOpts ¶
func (*Gateway) WarnfWithOpts ¶
type SelectChoice ¶
type SelectChoiceList ¶
type SelectChoiceList []SelectChoice
func NewSelectChoiceList ¶
func NewSelectChoiceList(values ...string) SelectChoiceList
func (*SelectChoiceList) GetByLabels ¶
func (choiceList *SelectChoiceList) GetByLabels(labels ...string) SelectChoiceList
func (*SelectChoiceList) Labels ¶
func (choiceList *SelectChoiceList) Labels() (result []string)
type SelectManyOpts ¶
type SelectManyOpts struct{}
type SelectOneOpts ¶
type SelectOneOpts struct{ PageLimit *int }
Click to show internal directories.
Click to hide internal directories.