...

Source file src/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go

Documentation: github.com/grpc-ecosystem/grpc-gateway/utilities

     1  package utilities
     2  
     3  // An OpCode is a opcode of compiled path patterns.
     4  type OpCode int
     5  
     6  // These constants are the valid values of OpCode.
     7  const (
     8  	// OpNop does nothing
     9  	OpNop = OpCode(iota)
    10  	// OpPush pushes a component to stack
    11  	OpPush
    12  	// OpLitPush pushes a component to stack if it matches to the literal
    13  	OpLitPush
    14  	// OpPushM concatenates the remaining components and pushes it to stack
    15  	OpPushM
    16  	// OpConcatN pops N items from stack, concatenates them and pushes it back to stack
    17  	OpConcatN
    18  	// OpCapture pops an item and binds it to the variable
    19  	OpCapture
    20  	// OpEnd is the least positive invalid opcode.
    21  	OpEnd
    22  )
    23  

View as plain text