Package utilities provides members for internal use in grpc-gateway.
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 )
These constants are the valid values of OpCode.
IOReaderFactory takes in an io.Reader and returns a function that will allow you to create a new reader that begins at the start of the stream
DoubleArray is a Double Array implementation of trie on sequences of strings.
NewDoubleArray builds a DoubleArray from a set of sequences of strings.
HasCommonPrefix determines if any sequence in the DoubleArray is a prefix of the given sequence.
An OpCode is a opcode of compiled path patterns.