Documentation ¶
Index ¶
- type HookRequest
- type Request
- func NewAuthRequest(ctx context.Context, authReq *skyplugin.AuthRequest) *Request
- func NewEventRequest(name string, data json.RawMessage) *Request
- func NewHandlerRequest(ctx context.Context, name string, input json.RawMessage) *Request
- func NewHookRequest(ctx context.Context, hookName string, record *skydb.Record, ...) *Request
- func NewLambdaRequest(ctx context.Context, name string, args json.RawMessage) *Request
- func NewTimerRequest(name string) *Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HookRequest ¶
type HookRequest struct { Record interface{} `json:"record"` Original interface{} `json:"original"` }
HookRequest contains records involved in a database hook.
type Request ¶
type Request struct { Context context.Context Kind string Name string Param interface{} Async bool }
Request represents data in a server to worker plugin request.
func NewAuthRequest ¶
func NewAuthRequest(ctx context.Context, authReq *skyplugin.AuthRequest) *Request
NewAuthRequest creates a new auth request.
func NewEventRequest ¶
func NewEventRequest(name string, data json.RawMessage) *Request
NewEventRequest creates a new event request
func NewHandlerRequest ¶
NewHandlerRequest creates a new handler request.
func NewHookRequest ¶
func NewHookRequest(ctx context.Context, hookName string, record *skydb.Record, originalRecord *skydb.Record, async bool) *Request
NewHookRequest creates a new hook request.
func NewLambdaRequest ¶
NewLambdaRequest creates a new lambda request.
func NewTimerRequest ¶ added in v0.22.0
NewTimerRequest creates a new timer request.
func (*Request) MarshalJSON ¶
MarshalJSON converts a request to JSON representation.
Click to show internal directories.
Click to hide internal directories.