mocks

package
v0.0.0-...-5e2de36 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 7 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
}

Context is an autogenerated mock type for the Context type

func (*Context) Attachment

func (_m *Context) Attachment(file string, name string) error

Attachment provides a mock function with given fields: file, name

func (*Context) Bind

func (_m *Context) Bind(i interface{}) error

Bind provides a mock function with given fields: i

func (*Context) Blob

func (_m *Context) Blob(code int, contentType string, b []byte) error

Blob provides a mock function with given fields: code, contentType, b

func (*Context) Cookie

func (_m *Context) Cookie(name string) (*http.Cookie, error)

Cookie provides a mock function with given fields: name

func (*Context) Cookies

func (_m *Context) Cookies() []*http.Cookie

Cookies provides a mock function with given fields:

func (*Context) Echo

func (_m *Context) Echo() *echo.Echo

Echo provides a mock function with given fields:

func (*Context) Error

func (_m *Context) Error(err error)

Error provides a mock function with given fields: err

func (*Context) File

func (_m *Context) File(file string) error

File provides a mock function with given fields: file

func (*Context) FormFile

func (_m *Context) FormFile(name string) (*multipart.FileHeader, error)

FormFile provides a mock function with given fields: name

func (*Context) FormParams

func (_m *Context) FormParams() (url.Values, error)

FormParams provides a mock function with given fields:

func (*Context) FormValue

func (_m *Context) FormValue(name string) string

FormValue provides a mock function with given fields: name

func (*Context) Get

func (_m *Context) Get(key string) interface{}

Get provides a mock function with given fields: key

func (*Context) HTML

func (_m *Context) HTML(code int, html string) error

HTML provides a mock function with given fields: code, html

func (*Context) HTMLBlob

func (_m *Context) HTMLBlob(code int, b []byte) error

HTMLBlob provides a mock function with given fields: code, b

func (*Context) Handler

func (_m *Context) Handler() echo.HandlerFunc

Handler provides a mock function with given fields:

func (*Context) Inline

func (_m *Context) Inline(file string, name string) error

Inline provides a mock function with given fields: file, name

func (*Context) IsTLS

func (_m *Context) IsTLS() bool

IsTLS provides a mock function with given fields:

func (*Context) IsWebSocket

func (_m *Context) IsWebSocket() bool

IsWebSocket provides a mock function with given fields:

func (*Context) JSON

func (_m *Context) JSON(code int, i interface{}) error

JSON provides a mock function with given fields: code, i

func (*Context) JSONBlob

func (_m *Context) JSONBlob(code int, b []byte) error

JSONBlob provides a mock function with given fields: code, b

func (*Context) JSONP

func (_m *Context) JSONP(code int, callback string, i interface{}) error

JSONP provides a mock function with given fields: code, callback, i

func (*Context) JSONPBlob

func (_m *Context) JSONPBlob(code int, callback string, b []byte) error

JSONPBlob provides a mock function with given fields: code, callback, b

func (*Context) JSONPretty

func (_m *Context) JSONPretty(code int, i interface{}, indent string) error

JSONPretty provides a mock function with given fields: code, i, indent

func (*Context) Logger

func (_m *Context) Logger() echo.Logger

Logger provides a mock function with given fields:

func (*Context) MultipartForm

func (_m *Context) MultipartForm() (*multipart.Form, error)

MultipartForm provides a mock function with given fields:

func (*Context) NoContent

func (_m *Context) NoContent(code int) error

NoContent provides a mock function with given fields: code

func (*Context) Param

func (_m *Context) Param(name string) string

Param provides a mock function with given fields: name

func (*Context) ParamNames

func (_m *Context) ParamNames() []string

ParamNames provides a mock function with given fields:

func (*Context) ParamValues

func (_m *Context) ParamValues() []string

ParamValues provides a mock function with given fields:

func (*Context) Path

func (_m *Context) Path() string

Path provides a mock function with given fields:

func (*Context) QueryParam

func (_m *Context) QueryParam(name string) string

QueryParam provides a mock function with given fields: name

func (*Context) QueryParams

func (_m *Context) QueryParams() url.Values

QueryParams provides a mock function with given fields:

func (*Context) QueryString

func (_m *Context) QueryString() string

QueryString provides a mock function with given fields:

func (*Context) RealIP

func (_m *Context) RealIP() string

RealIP provides a mock function with given fields:

func (*Context) Redirect

func (_m *Context) Redirect(code int, _a1 string) error

Redirect provides a mock function with given fields: code, _a1

func (*Context) Render

func (_m *Context) Render(code int, name string, data interface{}) error

Render provides a mock function with given fields: code, name, data

func (*Context) Request

func (_m *Context) Request() *http.Request

Request provides a mock function with given fields:

func (*Context) Reset

func (_m *Context) Reset(r *http.Request, w http.ResponseWriter)

Reset provides a mock function with given fields: r, w

func (*Context) Response

func (_m *Context) Response() *echo.Response

Response provides a mock function with given fields:

func (*Context) Scheme

func (_m *Context) Scheme() string

Scheme provides a mock function with given fields:

func (*Context) Set

func (_m *Context) Set(key string, val interface{})

Set provides a mock function with given fields: key, val

func (*Context) SetCookie

func (_m *Context) SetCookie(cookie *http.Cookie)

SetCookie provides a mock function with given fields: cookie

func (*Context) SetHandler

func (_m *Context) SetHandler(h echo.HandlerFunc)

SetHandler provides a mock function with given fields: h

func (*Context) SetLogger

func (_m *Context) SetLogger(l echo.Logger)

SetLogger provides a mock function with given fields: l

func (*Context) SetParamNames

func (_m *Context) SetParamNames(names ...string)

SetParamNames provides a mock function with given fields: names

func (*Context) SetParamValues

func (_m *Context) SetParamValues(values ...string)

SetParamValues provides a mock function with given fields: values

func (*Context) SetPath

func (_m *Context) SetPath(p string)

SetPath provides a mock function with given fields: p

func (*Context) SetRequest

func (_m *Context) SetRequest(r *http.Request)

SetRequest provides a mock function with given fields: r

func (*Context) SetResponse

func (_m *Context) SetResponse(r *echo.Response)

SetResponse provides a mock function with given fields: r

func (*Context) Stream

func (_m *Context) Stream(code int, contentType string, r io.Reader) error

Stream provides a mock function with given fields: code, contentType, r

func (*Context) String

func (_m *Context) String(code int, s string) error

String provides a mock function with given fields: code, s

func (*Context) Validate

func (_m *Context) Validate(i interface{}) error

Validate provides a mock function with given fields: i

func (*Context) XML

func (_m *Context) XML(code int, i interface{}) error

XML provides a mock function with given fields: code, i

func (*Context) XMLBlob

func (_m *Context) XMLBlob(code int, b []byte) error

XMLBlob provides a mock function with given fields: code, b

func (*Context) XMLPretty

func (_m *Context) XMLPretty(code int, i interface{}, indent string) error

XMLPretty provides a mock function with given fields: code, i, indent

type CreateConfig

type CreateConfig struct {
	mock.Mock
}

CreateConfig is an autogenerated mock type for the CreateConfig type

func (*CreateConfig) JWTSecret

func (_m *CreateConfig) JWTSecret() string

JWTSecret provides a mock function with given fields:

func (*CreateConfig) RootPath

func (_m *CreateConfig) RootPath() string

RootPath provides a mock function with given fields:

type SessionStore

type SessionStore struct {
	mock.Mock
}

SessionStore is an autogenerated mock type for the Store type

func (*SessionStore) Get

func (_m *SessionStore) Get(r *http.Request, name string) (*sessions.Session, error)

Get provides a mock function with given fields: r, name

func (*SessionStore) New

func (_m *SessionStore) New(r *http.Request, name string) (*sessions.Session, error)

New provides a mock function with given fields: r, name

func (*SessionStore) Save

Save provides a mock function with given fields: r, w, s

Jump to

Keyboard shortcuts

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