-
Notifications
You must be signed in to change notification settings - Fork 13
/
mir.go
47 lines (33 loc) · 1.64 KB
/
mir.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright 2019 Michael Li <alimy@gility.net>. All rights reserved.
// Use of this source code is governed by Apache License 2.0 that
// can be found in the LICENSE file.
package mir
// Group indicator a default group for handler to register to server engine
type Group any
// Chain indicator a Handler slice used register Middleware to router by group
type Chain any
// Context indicator a handler that just use engine's context like use gin engine
// the handler will just take a function func(c *gin.Context) as handler
type Context any
// Get indicator a GET method handler used placeholder register info in struct tag
type Get any
// Put indicator a PUT method handler used placeholder register info in struct tag
type Put any
// Post indicator a POST method handler used placeholder register info in struct tag
type Post any
// Delete indicator a DELETE method handler used placeholder register info in struct tag
type Delete any
// Head indicator a HEAD method handler used placeholder register info in struct tag
type Head any
// Patch indicator a PATCH method handler used placeholder register info in struct tag
type Patch any
// Trace indicator a TRACE method handler used placeholder register info in struct tag
type Trace any
// Connect indicator a CONNECT method handler used placeholder register info in struct tag
type Connect any
// Options indicator a OPTIONS method handler used placeholder register info in struct tag
type Options any
// Any indicator a Any method handler used placeholder register info in struct tag.
// This is mean register handler that all http.Method* include(GET, PUT, POST, DELETE,
// HEAD, PATCH, OPTIONS)
type Any any