mid

package
v0.0.0-...-e3d78ff Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIVersionCtx

func APIVersionCtx(version string) func(next http.Handler) http.Handler

APIVersionCtx set the version value in context

func Paginate

func Paginate(next http.Handler) http.Handler

Paginate is middleware to construct Pagination from http.Request

func PaginateFromContext

func PaginateFromContext(ctx context.Context) (*model.Pagination, bool)

PaginateFromContext get Paginate from context

func VersionFromContext

func VersionFromContext(ctx context.Context) (string, bool)

VersionFromContext get version string value from context

Types

This section is empty.

Jump to

Keyboard shortcuts

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