app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseDate = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func BuildReplay

func BuildReplay(c *rux.Context) interface{}

func Logger

func Logger(inner http.Handler, name string) http.Handler

Types

type BodyModel

type BodyModel struct {
	Url     string            `json:"url"`
	Origin  string            `json:"origin"`
	Method  string            `json:"method"`
	Body    string            `json:"body"`
	Json    interface{}       `json:"json"`
	Args    map[string]string `json:"args"`
	Form    map[string]string `json:"form"`
	Files   map[string]string `json:"files"`
	Headers map[string]string `json:"headers"`
}

BodyModel data reply model

func BuildBodyReplay

func BuildBodyReplay(c *rux.Context) BodyModel

type QueryModel

type QueryModel struct {
	Url     string            `json:"url"`
	Origin  string            `json:"origin"`
	Method  string            `json:"method"`
	Args    map[string]string `json:"args"`
	Headers map[string]string `json:"headers"`
}

QueryModel data reply model

func BuildQueryReplay

func BuildQueryReplay(c *rux.Context) QueryModel

Jump to

Keyboard shortcuts

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