Documentation ¶
Index ¶
- Constants
- type Back
- type BindingsGetter
- type ChosenMethod
- type ChosenService
- type ClearStatusMsg
- type Commands
- func (c *Commands) Back() tea.Cmd
- func (c *Commands) ClearStatusMsg() tea.Cmd
- func (c *Commands) LoadMethodMetadata(method string) tea.Cmd
- func (c *Commands) LoadMethods(service string) tea.Cmd
- func (c *Commands) LoadServices() tea.Cmd
- func (c *Commands) ResendRequest() tea.Cmd
- func (c *Commands) SendRequest(method string, payload string) tea.Cmd
- func (c *Commands) SetStatus(status string, st StatusType) tea.Cmd
- func (c *Commands) SetStatusLoading() tea.Cmd
- func (c *Commands) SetStatusMessage(msg string, st StatusMsgType) tea.Cmd
- func (c *Commands) SetStatusOK() tea.Cmd
- type Err
- type HelpView
- type MethodsListItem
- type MethodsListKeyMap
- type MethodsListView
- type NewStatus
- type NewStatusMessage
- type ReceivedResponse
- type ReceivedStatus
- type RequestKeyMap
- type RequestView
- type ResendRequest
- type ResponseKeyMap
- type ResponseView
- type Root
- type RootKeyMap
- type ServicesListItem
- type ServicesListKeyMap
- type ServicesListView
- type ShowMethodsList
- type ShowRequester
- type ShowResponseView
- type ShowServicesList
- type StatusMsgType
- type StatusType
- type StatusView
- type TitleView
- type View
Constants ¶
View Source
const ( StatusMsgError StatusMsgType = iota StatusMsgSuccess StatusMsgType = iota StatusTypeOK StatusType = iota StatusTypeWarn StatusType = iota StatusTypeError StatusType = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingsGetter ¶
type ChosenMethod ¶
type ChosenMethod struct {
Method string
}
type ChosenService ¶
type ChosenService struct {
Service string
}
type ClearStatusMsg ¶
type ClearStatusMsg struct{}
type Commands ¶
type Commands struct {
// contains filtered or unexported fields
}
func (*Commands) ClearStatusMsg ¶
func (*Commands) LoadMethodMetadata ¶ added in v0.0.3
func (*Commands) LoadServices ¶
func (*Commands) ResendRequest ¶ added in v0.0.3
func (*Commands) SendRequest ¶
func (*Commands) SetStatusLoading ¶ added in v0.0.3
func (*Commands) SetStatusMessage ¶
func (c *Commands) SetStatusMessage(msg string, st StatusMsgType) tea.Cmd
func (*Commands) SetStatusOK ¶ added in v0.0.3
type HelpView ¶
type HelpView struct {
// contains filtered or unexported fields
}
func NewHelpView ¶
func NewHelpView(bindings BindingsGetter) HelpView
type MethodsListItem ¶
func NewMethodsListItem ¶
func NewMethodsListItem(name string) MethodsListItem
func (MethodsListItem) Description ¶
func (i MethodsListItem) Description() string
func (MethodsListItem) FilterValue ¶
func (i MethodsListItem) FilterValue() string
func (MethodsListItem) Title ¶
func (i MethodsListItem) Title() string
type MethodsListKeyMap ¶
type MethodsListView ¶
type MethodsListView struct {
// contains filtered or unexported fields
}
func NewMethodsListView ¶
func NewMethodsListView(commands *Commands) *MethodsListView
func (*MethodsListView) HandleWindowSize ¶
func (m *MethodsListView) HandleWindowSize(msg tea.WindowSizeMsg)
func (*MethodsListView) Init ¶
func (m *MethodsListView) Init() tea.Cmd
func (*MethodsListView) View ¶
func (m *MethodsListView) View() string
type NewStatus ¶ added in v0.0.3
type NewStatus struct { Status string Type StatusType }
type NewStatusMessage ¶ added in v0.0.3
type NewStatusMessage struct { Type StatusMsgType Msg string }
type ReceivedResponse ¶
type ReceivedResponse struct { Response string // contains filtered or unexported fields }
type ReceivedStatus ¶
type ReceivedStatus struct { Status string // contains filtered or unexported fields }
type RequestKeyMap ¶
func DefaultRequestKeyMap ¶
func DefaultRequestKeyMap() RequestKeyMap
func (RequestKeyMap) Bindings ¶
func (r RequestKeyMap) Bindings() []key.Binding
type RequestView ¶
type RequestView struct {
// contains filtered or unexported fields
}
func NewRequesterView ¶
func NewRequesterView(commands *Commands) *RequestView
func (*RequestView) FormatInput ¶
func (r *RequestView) FormatInput()
func (*RequestView) HandleWindowSize ¶
func (r *RequestView) HandleWindowSize(msg tea.WindowSizeMsg)
func (*RequestView) Init ¶
func (r *RequestView) Init() tea.Cmd
func (*RequestView) SyncSize ¶
func (r *RequestView) SyncSize()
func (*RequestView) View ¶
func (r *RequestView) View() string
type ResendRequest ¶
type ResendRequest struct { }
type ResponseKeyMap ¶
type ResponseKeyMap struct {
// contains filtered or unexported fields
}
func DefaultResponseKeyMap ¶
func DefaultResponseKeyMap() ResponseKeyMap
func (ResponseKeyMap) Bindings ¶
func (r ResponseKeyMap) Bindings() []key.Binding
type ResponseView ¶
type ResponseView struct {
// contains filtered or unexported fields
}
func NewResponseView ¶
func NewResponseView(commands *Commands) *ResponseView
func (*ResponseView) HandleWindowSize ¶
func (r *ResponseView) HandleWindowSize(msg tea.WindowSizeMsg)
func (*ResponseView) Init ¶
func (r *ResponseView) Init() tea.Cmd
func (*ResponseView) View ¶
func (r *ResponseView) View() string
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
func (*Root) CurrentView ¶
type ServicesListItem ¶
type ServicesListItem struct {
Name string
}
func (ServicesListItem) Description ¶
func (i ServicesListItem) Description() string
func (ServicesListItem) FilterValue ¶
func (i ServicesListItem) FilterValue() string
func (ServicesListItem) Title ¶
func (i ServicesListItem) Title() string
type ServicesListKeyMap ¶
type ServicesListView ¶
type ServicesListView struct {
// contains filtered or unexported fields
}
func NewServicesListView ¶
func NewServicesListView(commands *Commands) *ServicesListView
func (*ServicesListView) HandleWindowSize ¶
func (m *ServicesListView) HandleWindowSize(msg tea.WindowSizeMsg)
func (*ServicesListView) Init ¶
func (m *ServicesListView) Init() tea.Cmd
func (*ServicesListView) View ¶
func (m *ServicesListView) View() string
type ShowMethodsList ¶
type ShowRequester ¶
type ShowResponseView ¶
type ShowResponseView struct {
// contains filtered or unexported fields
}
type ShowServicesList ¶
type ShowServicesList struct {
Services []string
}
type StatusMsgType ¶
type StatusMsgType int
type StatusType ¶
type StatusType int
type StatusView ¶
type StatusView struct {
// contains filtered or unexported fields
}
func NewStatusView ¶
func NewStatusView() *StatusView
func (*StatusView) HandleWindowSize ¶
func (s *StatusView) HandleWindowSize(msg tea.WindowSizeMsg)
func (*StatusView) Init ¶
func (s *StatusView) Init() tea.Cmd
func (*StatusView) View ¶
func (s *StatusView) View() string
type TitleView ¶
type TitleView struct {
// contains filtered or unexported fields
}
func NewTitleView ¶
Click to show internal directories.
Click to hide internal directories.