Skip to content

Latest commit

 

History

History
85 lines (69 loc) · 1.36 KB

CustomxProcedure.md

File metadata and controls

85 lines (69 loc) · 1.36 KB

Custom Procedure

CEI supports to define the custom procedure to process the data.

<custom_procedures>
    <function name="xxx">
        <inputs>
            <string name="xxx"/>
            <int name="xxx"/>
        </inputs>
        <return name="{xxx}"/>
        <procedure>
            <get_now name="{xxx}"/>
            <json_builder name="{xxx}"/>
        </procedure>
    </function>
</custom_procedures>

To invoke

<procedure>
    <invoke name="xxx" inputs="{xxx},{xxx}" return="{xxx}"/>
</procedure>

Get Now

<get_now name="{xxx}" format="Unix_ms"/>

Base64

<base64 name="{xxx}" input="{xxx}"/>

HMAC SHA256

<hmacsha256 name="{xxx}" input="{xxx}" key="{xxx}"/>

URL Escape

<url_escape name="{xxx}" input="{xxx}"/>

Gzip

<gzip name="{xxx}" input="{xxx}" type="decompress"/>

Add Query String

<add_query_string input="{xxx}" key="xxx" value="{xxx}"/>

Get Request Body

<TBD/>

Add Header

<TBD/>

Combine Query String

<combine_query_string name="{xxx}" sort="asc" separator="xxx"/>

Get Request Information

<get_request_info name="{xxx}" info="method" convert="uppercase"/>

String builder

<string_builder name="{buffer}"/>

Json Parser/Builder

Refer to Json Parser/Builder