Result

Index

All Result functions

Name Function header Example Result Description Errorhandling
newResult func() Result [[ $v := newResult ]] $v contains a new Result Object
getResult func() Result [[ $v := getResult ]] $v contains the Result object from the current Request
setResult func(result Result) bool [[ setResult $res ]] sets the Result object $res as the current Requests Result
getResultCode func(result Result) int [[ $v := getResultCode $res ]] $v contains the Result Code from the $res result Object
getResultData func(result Result) Data [[ $v := getResultData $res ]] $v contains the Result Data from the $res result Object
getResultList func(result Result) []Data [[ $v := getResultList $res ]] $v contains the Result List from the $res result Object
getResultMsg func(result Result) string [[ $v := getResultMsg $res ]] $v contains the Result Message from the $res result Object
setResultCode func(result Result, code int) Result [[ $v := setResultCode $res 400 ]] $v contains the $res Result Object with the Code set to 400
setResultData func(result Result, data Data) Result [[ $v := setResultData $res $data ]] $v contains the $res Result Object with the Data set to $data
setResultList func(result Result, data []Data) Result [[ $v := setResultList $res $list ]] $v contains the $res Result Object with the List set to $list
setResultMsg func(result Result, msg string) Result [[ $v := setResultMsg $res "It Went Wrong" ]] $v contains the $res Result Object with the Message set to “It Went Wrong”

getResult

// TODO

func() Result

The getResult function …

Example with getResult

[[ $v := getResult ... ]]

$v contains …

getResultCode

// TODO

func(result Result) int

The getResultCode function …

Example with getResultCode

[[ $v := getResultCode ... ]]

$v contains …

getResultData

// TODO

func(result Result) Data

The getResultData function …

Example with getResultData

[[ $v := getResultData ... ]]

$v contains …

getResultList

// TODO

func(result Result) []Data

The getResultList function …

Example with getResultList

[[ $v := getResultList ... ]]

$v contains …

getResultMsg

// TODO

func(result Result) string

The getResultMsg function …

Example with getResultMsg

[[ $v := getResultMsg ... ]]

$v contains …

newResult

// TODO

func() Result

The newResult function …

Example with newResult

[[ $v := newResult ... ]]

$v contains …

setResult

// TODO

func(result Result) bool

The setResult function …

Example with setResult

[[ $v := setResult ... ]]

$v contains …

setResultCode

// TODO

func(result Result, code int) Result

The setResultCode function …

Example with setResultCode

[[ $v := setResultCode ... ]]

$v contains …

setResultData

// TODO

func(result Result, data Data) Result

The setResultData function …

Example with setResultData

[[ $v := setResultData ... ]]

$v contains …

setResultList

// TODO

func(result Result, data []Data) Result

The setResultList function …

Example with setResultList

[[ $v := setResultList ... ]]

$v contains …

setResultMsg

// TODO

func(result Result, msg string) Result

The setResultMsg function …

Example with setResultMsg

[[ $v := setResultMsg ... ]]

$v contains …