tests

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRequest

type FakeRequest struct {
	content.SimpleParamRequest
	Path   string
	Method string
	Url    *url.URL
}

func NewRequest

func NewRequest(method, path string) *FakeRequest

func (FakeRequest) Accepts

func (f FakeRequest) Accepts() []byte

func (FakeRequest) Authorization

func (f FakeRequest) Authorization() []byte

func (FakeRequest) BearerToken

func (f FakeRequest) BearerToken() ([]byte, error)

func (FakeRequest) Context

func (f FakeRequest) Context() context.Context

func (FakeRequest) ExceptsJson

func (f FakeRequest) ExceptsJson() bool

func (FakeRequest) File

func (f FakeRequest) File(key string) (contracts.UploadFile, error)

func (FakeRequest) Get

func (f FakeRequest) Get(key string) []byte

func (FakeRequest) GetClientIp

func (f FakeRequest) GetClientIp() string

func (FakeRequest) GetContent

func (f FakeRequest) GetContent() []byte

func (FakeRequest) GetInt

func (f FakeRequest) GetInt(key string) (int, error)

func (FakeRequest) GetInt64

func (f FakeRequest) GetInt64(key string) (int64, error)

func (FakeRequest) GetMethod

func (f FakeRequest) GetMethod() string

func (FakeRequest) GetPathBytes

func (f FakeRequest) GetPathBytes() []byte

func (FakeRequest) GetSignature

func (f FakeRequest) GetSignature() []byte

func (FakeRequest) GetString

func (f FakeRequest) GetString(key string) string

func (FakeRequest) GetUint64

func (f FakeRequest) GetUint64(key string) (uint64, error)

func (FakeRequest) GetUri

func (f FakeRequest) GetUri() []byte

func (FakeRequest) GetValue

func (f FakeRequest) GetValue(key ...string) contracts.InputValue

func (FakeRequest) Header

func (f FakeRequest) Header(key string) []byte

func (FakeRequest) HeaderString

func (f FakeRequest) HeaderString(key string) string

func (FakeRequest) IsXmlHttpRequest

func (f FakeRequest) IsXmlHttpRequest() bool

func (FakeRequest) RemoteAddr added in v0.0.14

func (f FakeRequest) RemoteAddr() string

func (FakeRequest) RequestWithJson

func (f FakeRequest) RequestWithJson() bool

func (FakeRequest) SetHeader

func (f FakeRequest) SetHeader(key string, value []byte) contracts.RequestContract

func (FakeRequest) SetHeaderString

func (f FakeRequest) SetHeaderString(key, value string) contracts.RequestContract

func (FakeRequest) ToString added in v0.0.9

func (f FakeRequest) ToString() string

func (FakeRequest) Unmarshal

func (f FakeRequest) Unmarshal(to interface{}) error

Jump to

Keyboard shortcuts

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