cli

package
v0.0.0-...-82f88a3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner()

Banner

Types

type App

type App struct {
	SigChan  chan Signal
	Database *core.Database
}

func (*App) About

func (app *App) About() error

About

func (*App) Create

func (app *App) Create() error

Create Request creation workflow

func (*App) Delete

func (app *App) Delete(reqName string) error

Delete

func (*App) Edit

func (app *App) Edit(reqName string) error

Edit

func (*App) ErrorHandler

func (app *App) ErrorHandler(err error)

func (*App) Home

func (app *App) Home() error

Home Display Home menu options

func (*App) Request

func (app *App) Request(reqName string, display bool) error

Request Display options after selecting a request

func (*App) Requests

func (app *App) Requests() error

Requests Display all available requests previously created by the user

func (*App) Run

func (app *App) Run()

Run Main run application method Consumes the channel, and acts accordingly

func (*App) RunRequest

func (app *App) RunRequest(reqName string) error

RunRequest Execute HTTP request, display response

type Signal

type Signal struct {
	Meta    string
	Sig     string
	Display bool
	Err     error
}

Jump to

Keyboard shortcuts

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