Documentation ¶
Index ¶
Constants ¶
View Source
const ( JitsuKvGetCommand = "_JITSU_KV_GET" JitsuKvSetCommand = "_JITSU_KV_SET" )
Variables ¶
View Source
var DefaultExchangeTimeout = time.Minute
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (*Factory) CreateScript ¶
func (*Factory) ProcessCustomCommand ¶
type KeyValueCommand ¶
type KeyValueCommand struct { RequestId int64 `json:"requestId"` DestinationId string `json:"destinationId"` Key string `json:"key"` Value *string `json:"value,omitempty"` TTLms *int64 `json:"ttlMs,omitempty"` Success bool `json:"success"` Error string `json:"error"` }
KeyValueCommand is used to pass payload of key-value storage commands and results.
type Request ¶
type Request struct { Command string `json:"command"` Payload interface{} `json:"payload,omitempty"` }
Click to show internal directories.
Click to hide internal directories.