mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	mock.Mock
}

func (*Context) AbortWithError

func (m *Context) AbortWithError(code int, err error) *gin.Error

func (*Context) GetRequest

func (m *Context) GetRequest() *http.Request

func (*Context) HTML

func (m *Context) HTML(code int, name string, obj interface{})

func (*Context) Param

func (m *Context) Param(key string) string

func (*Context) Query

func (m *Context) Query(key string) string

func (*Context) Redirect

func (m *Context) Redirect(code int, location string)

func (*Context) SetCookie added in v1.0.1

func (m *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool)

func (*Context) String

func (m *Context) String(code int, format string, values ...interface{})

Jump to

Keyboard shortcuts

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