components

package
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Url     string
	Name    string
	Method  string
	Headers string
	Body    string
}

type RequestComponent

type RequestComponent struct {
	Container        *tview.Flex
	UrlComponent     *tview.InputField
	NameComponent    *tview.InputField
	HeadersComponent *tview.TextArea
	BodyComponent    *tview.TextArea
}

func CreateRequest

func CreateRequest() *RequestComponent

Create a flex container with row alignment to put request option components

type RequestsListComponent

type RequestsListComponent struct {
	Container *tview.Flex
	Component *tview.List
	Items     []Request
}

func CreateRequestsList

func CreateRequestsList() *RequestsListComponent

Create a flex container with row alignment to put requests list

func (*RequestsListComponent) AddItem

func (rl *RequestsListComponent) AddItem(r *Request, cb func())

AddItem a new request into requests list

type ResponseComponent

type ResponseComponent struct {
	Container *tview.Flex
	Component *tview.TextView
}

func CreateResponse

func CreateResponse() *ResponseComponent

Create a flex container with row alignment to put response data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL