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
Click to show internal directories.
Click to hide internal directories.