mock

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockContext

func MockContext[T any](params MockContextParams[T]) ginger.IContext[T]

Types

type MockContextParams

type MockContextParams[T any] struct {
	Request   *T
	Page      models.IPagination
	Sort      models.ISorting
	Method    string
	Path      string
	ClientIP  string
	UserAgent string
	Headers   map[string]string
}

Jump to

Keyboard shortcuts

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