Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivationDoc ¶
type ActivationMessage ¶
type ActivationMessage struct { Action Action `json:"action"` ActivationID string `json:"activationId"` Blocking bool `json:"blocking"` Parameters interface{} `json:"content"` Revision string `json:"revision"` Controller struct { AsString string `json:"asString"` } `json:"rootControllerIndex"` TransactionID []interface{} `json:"transid"` User User `json:"user"` }
type Annotation ¶
type Annotation struct { Key string `json:"key"` Value interface{} `json:"value"` }
type CompletionMessage ¶
type CompletionResponseMessage ¶
type CompletionResponseMessage struct { Response Response `json:"response"` TransactionID []interface{} `json:"transid"` }
type Executable ¶
type Executable struct { Kind string `json:"kind"` Code interface{} `json:"code"` }
type FunctionDoc ¶
type FunctionDoc struct { ID string `json:"_id"` Revision string `json:"_rev"` Name string `json:"name"` Namespace string `json:"namespace"` Executable Executable `json:"exec"` Binary bool `json:"binary"` Limits Limits `json:"limits"` Parameters []interface{} `json:"parameters"` Annotations []Annotation `json:"annotations"` EntityType string `json:"entityType"` Publish bool `json:"publish"` Updated int `json:"updated"` Version string `json:"version"` }
func (*FunctionDoc) CodeString ¶
func (f *FunctionDoc) CodeString() (string, error)
type Response ¶
type Response struct { ActivationID string `json:"activationId"` Annotations []Annotation `json:"annotations"` Name string `json:"name"` Namespace string `json:"namespace"` Response ResponseValue `json:"response"` Start int `json:"start"` End int `json:"end"` Duration int `json:"duration"` Subject string `json:"subject"` EntityType string `json:"entityType"` Logs []interface{} `json:"logs"` Publish bool `json:"publish"` Version string `json:"version"` }
func GenerateResponse ¶
func GenerateResponse(activationMessage *ActivationMessage, function *FunctionDoc, result interface{}) Response
type ResponseValue ¶
type ResponseValue struct { Result interface{} `json:"result"` StatusCode int `json:"statusCode"` }
Click to show internal directories.
Click to hide internal directories.