test

package
v0.0.0-...-c266f6d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearProxy

func ClearProxy()

func SetupCache

func SetupCache() error

func SetupDb

func SetupDb() error

func SetupProxy

func SetupProxy()

Types

type Request

type Request struct {
	Method string
	Url    string
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(t *testing.T) *Request

func (*Request) Exec

func (r *Request) Exec() *Response

func (*Request) Get

func (r *Request) Get(url string) *Request

func (*Request) Handler

func (r *Request) Handler(h gin.HandlerFunc) *Request

type Response

type Response struct {
	// contains filtered or unexported fields
}

func (*Response) Body

func (r *Response) Body() string

func (*Response) Code

func (r *Response) Code() int

func (*Response) TryDecode

func (r *Response) TryDecode() (code int, msg string, data any, err error)

Jump to

Keyboard shortcuts

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