mockrouting

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteParamManager

type RouteParamManager struct {
	mock.Mock
}

RouteParamManager is a mock routing.RouteParamManager.

func NewRouteParamManager

func NewRouteParamManager() *RouteParamManager

NewRouteParamManager returns a new RouteParamManager.

func (*RouteParamManager) BuildRouteParamIDFetcher

func (m *RouteParamManager) BuildRouteParamIDFetcher(logger logging.Logger, key, logDescription string) func(*http.Request) uint64

BuildRouteParamIDFetcher satisfies our interface contract.

func (*RouteParamManager) BuildRouteParamStringIDFetcher

func (m *RouteParamManager) BuildRouteParamStringIDFetcher(key string) func(req *http.Request) string

BuildRouteParamStringIDFetcher satisfies our interface contract.

func (*RouteParamManager) FetchContextFromRequest

func (m *RouteParamManager) FetchContextFromRequest(req *http.Request) (*types.SessionContextData, error)

FetchContextFromRequest satisfies our interface contract.

func (*RouteParamManager) UserIDFetcherFromSessionContextData

func (m *RouteParamManager) UserIDFetcherFromSessionContextData(req *http.Request) uint64

UserIDFetcherFromSessionContextData satisfies our interface contract.

Jump to

Keyboard shortcuts

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