With Go, the method name must be capitalized.
Functions handlers reference
Handler syntax
For Python functions, the handler must be written in the <folder>/<file>.<function_name>
format.
-
If the
handle
function is defined in a single file namedhandler.py
: the handler name will behandler.handle
. -
If the
handle
function is defined in a file namedhandler.py
in a root folder: the handler will behandler.handle
. -
If the
handle
function is defined in a file namedhandler.py
within a folder (for example,myFunction/handler.py
): the handler will bemyFunction/handler.handle
.
For Node functions, the handler must be written in the <folder>/<file>.<function_name>
format.
-
If the
handle
function is defined in a single file namedhandler.js
: the handler name will behandler.handle
. -
If the
handle
function is defined in a file namedhandler.js
in a root folder: the handler will behandler.handle
. -
If the
handle
function is defined in a file namedhandler.js
within a folder (for example,myFunction/handler.js
): the handler will bemyFunction/handler.handle
.
For PHP functions, the handler must be written in the <folder>/<file>.<function_name>
format.
-
If the
handle
function is defined in a single file namedhandler.php
: the handler name will behandler.handle
. -
If the
handle
function is defined in a file namedhandler.php
in a root folder: the handler will behandler.handle
. -
If the
handle
function is defined in a file namedhandler.php
within a folder (for example,myFunction/handler.php
): the handler will bemyFunction/handler.handle
.
For Go, the handler must be written in the <folder>/<function_name>
format:
-
If the
Handle
function is defined in ahandler.go
file in a root folder: the handler name will beHandle
. -
If the
Handle
function is defined in ahandler.go
file (for example,myFunction/handler.go
): the handler will bemyFunction/Handle
For Rust, the handler must be written in the <folder>/<function_name>
format:
-
If the
handle
function is defined in ahandler.rs
file in a root folder: the handler name will behandle
. -
If the
handle
function is defined in ahandler.rs
file (for example,myFunction/handler.rs
): the handler will bemyFunction/handle
With Rust, the method must be exported using the pub
keyword.