Request

package
v0.0.0-...-0c35e60 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugTransport

type DebugTransport struct{}

func (DebugTransport) RoundTrip

func (DebugTransport) RoundTrip(r *http.Request) (*http.Response, error)

type Handler

type Handler struct{}
var RequestHandler Handler

func (Handler) ServeHTTP

func (t Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)

type Payload

type Payload struct {
	Storage string `json:"storage"`
	Uid     string `json:"uid"`
	User    string `json:"user"`
	Addr    string `json:"addr"`
	Path    string `json:"path"`
}

type RequestData

type RequestData struct {
	User   string `json:"user"`
	Pass   string `json:"pass"`
	Repo   string `json:"repo"`
	Action string `json:"action"`
}

type ResponseData

type ResponseData struct {
	Code    int     `json:"code"`
	Message string  `json:"message"`
	Data    Payload `json:"data"`
}

Jump to

Keyboard shortcuts

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