oa

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MsgReqGood = "\n✓ request valid\n"
View Source
const MsgResGood = "✓ response valid\n\n"
View Source
const MsgRouteGood = "✓ find route\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type Animal added in v0.0.3

type Animal struct {
	Dog        string     `json:"dog"`
	Cat        string     `json:"cat"`
	AnimalNest AnimalNest `json:"animalnest"`
}

type AnimalNest added in v0.0.4

type AnimalNest struct {
	ID      int     `json:"id"`
	Arrnest []IDobj `json:"arrnest"`
}

type CLI

type CLI struct {
	Out     io.Writer
	Schema  bytes.Buffer
	BaseURL url.URL
}

func New

func New(out io.Writer, schema bytes.Buffer, url url.URL) *CLI

func (*CLI) DumpRoutes added in v0.0.4

func (cli *CLI) DumpRoutes() error

func (*CLI) Run

func (cli *CLI) Run(path string, method string, body io.Reader, token string, status int) error

type Fish added in v0.0.5

type Fish struct {
	ID int `json:"id"`
}

type IDobj added in v0.0.4

type IDobj struct {
	ID int `json:"id"`
}

type Pet

type Pet struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Animal Animal `json:"animal"`
}

type Res

type Res struct {
	Pets []Pet `json:"pets"`
}

type Runner

type Runner interface {
	Run() error
}

Jump to

Keyboard shortcuts

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