Documentation ¶
Overview ¶
Package reggen generates text based on regex definitions This lib is from https://github.com/lucasjones/reggen/blob/master/reggen.go
Index ¶
- Constants
- func GenerateChaincodeParams(chaincodeParamArray []string, transientMap string, ...) (chaincodeArgs []string, ...)
- func GenerateRegexString(regex string, limit int) (string, error)
- func GetComplexArgs(complexParams []string, loopIndex int) ([]string, error)
- func GetTransientMap(complexParams []string, loopIndex int) ([]byte, error)
- type Generator
- type IntegerRange
- type Literal
- type PayloadRange
- type SequentialString
- type StringPattern
- type UUID
Constants ¶
View Source
const ( LITERAL_PARAM = "literal" UUID_PARAM = "uuid" STRING_PATTERN = "stringPattern" INTEGER_RANGE = "intRange" PAYLOAD_RANGE = "payloadRange" SEQUENTIAL_STRING = "sequentialString" TRANSIENT_MAP = "transientMap" )
Variables ¶
This section is empty.
Functions ¶
func GenerateChaincodeParams ¶
func GenerateChaincodeParams(chaincodeParamArray []string, transientMap string, dynamicTransientMapKs []string, dynamicTransientMapVs []string, iterationIndex int) (chaincodeArgs []string, transientStaticMap, transientDynamicMap map[string][]byte, err error)
Generate chaincode arguments (common chaincode) and transientMap (private data chaincode)
Types ¶
type IntegerRange ¶
func (*IntegerRange) GetValue ¶
func (p *IntegerRange) GetValue() (string, error)
type PayloadRange ¶
func (*PayloadRange) GetValue ¶
func (p *PayloadRange) GetValue() (string, error)
type SequentialString ¶
type SequentialString struct {
Value string
}
func (*SequentialString) GetValue ¶
func (p *SequentialString) GetValue(loopIndex int) string
type StringPattern ¶
type StringPattern struct {
Regex string
}
func (*StringPattern) GetValue ¶
func (p *StringPattern) GetValue() (string, error)
Click to show internal directories.
Click to hide internal directories.