Move api/router/util to util/router (#1909)

This commit is contained in:
Asim Aslam
2020-08-07 13:30:29 +01:00
committed by GitHub
parent 8ee31b94a1
commit a6d7b1d710
11 changed files with 10 additions and 10 deletions

24
util/router/pattern.go Normal file
View File

@@ -0,0 +1,24 @@
package router
// download from https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/utilities/pattern.go
// An OpCode is a opcode of compiled path patterns.
type OpCode int
// These constants are the valid values of OpCode.
const (
// OpNop does nothing
OpNop = OpCode(iota)
// OpPush pushes a component to stack
OpPush
// OpLitPush pushes a component to stack if it matches to the literal
OpLitPush
// OpPushM concatenates the remaining components and pushes it to stack
OpPushM
// OpConcatN pops N items from stack, concatenates them and pushes it back to stack
OpConcatN
// OpCapture pops an item and binds it to the variable
OpCapture
// OpEnd is the least positive invalid opcode.
OpEnd
)