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