ui

package
v0.0.0-...-e0aa5ce Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRequestResponse

func FormatRequestResponse(r string) (string, string)

func JsonPrettyPrint

func JsonPrettyPrint(in string) (string, error)

func NewProgram

func NewProgram(dbq *db.Queries) *tea.Program

func QueryPrettyPrint

func QueryPrettyPrint(in string) (string, error)

func TruncateString

func TruncateString(str string, length int) string

Types

type GlobalState

type GlobalState int
const (
	PromptParams GlobalState = iota
	Searching
	NotFound
	Listing
	Errored
	Inspecting
)

type LogContent

type LogContent struct {
	Request  Request  `json:"request"`
	Response Response `json:"response"`
}

type Request

type Request struct {
	Headers string `json:"headers"`
	Data    string `json:"data"`
}

type Response

type Response struct {
	Headers string `json:"headers"`
	Data    string `json:"data"`
}

type SearchingState

type SearchingState int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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