uuidmw

package
v0.0.0-...-83625b3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUIDMiddleware

type UUIDMiddleware struct {
	// contains filtered or unexported fields
}

UUIDMiddleware checks the validity of the UUIDs in URL parameters.

Because it relies on the URL parameters to be present in the context, it can only be used as handler middlewares.

func New

func New(key []byte, strict bool, parameters ...string) *UUIDMiddleware

New creates a new UUIDMiddleware.

If the strict parameter is false, then empty values will be allowed.

func (*UUIDMiddleware) Dependencies

func (m *UUIDMiddleware) Dependencies() []string

func (*UUIDMiddleware) Wrap

func (m *UUIDMiddleware) Wrap(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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