Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEventInfo ¶ added in v0.8.2
type AuthHeader ¶ added in v0.8.2
type DeleteEventInfo ¶ added in v0.8.2
type DeleteEventInfo struct {
RootUIDs []string `json:"rootUIDs"`
}
type Directive ¶ added in v0.8.16
type Directive struct {
Name string `json:"name"`
Arguments map[string]json.RawMessage `json:"arguments"`
}
type Event ¶ added in v0.8.2
type Event struct {
TypeName string `json:"__typename"`
CommitTs uint64 `json:"commitTs"`
Operation string `json:"operation"`
Add *AddEventInfo `json:"add"`
Update *UpdateEventInfo `json:"update"`
Delete *DeleteEventInfo `json:"delete"`
}
type ExecuterInterface ¶ added in v0.8.2
type ExecuterInterface interface {
Resolve(ctx context.Context, request *Request) ([]byte, *LambdaError)
}
type HandlerFunc ¶ added in v0.8.2
type HttpResponseStatus ¶ added in v0.8.15
type HttpResponseStatus int
type InfoField ¶ added in v0.8.16
type InfoField struct {
Field SelectionField `json:"field"`
}
type Lambda ¶ added in v0.8.2
type Lambda struct {
Executor ExecuterInterface
}
func New ¶ added in v0.8.2
func New(executer ExecuterInterface) *Lambda
type LambdaError ¶ added in v0.8.10
type LambdaError struct {
Underlying error
Status HttpResponseStatus
}
func (*LambdaError) Error ¶ added in v0.8.10
func (l *LambdaError) Error() string
type MiddlewareContext ¶ added in v0.8.16
type MiddlewareFunc ¶ added in v0.8.2
type MiddlewareFunc func(MiddlewareContext) MiddlewareContext
type Request ¶ added in v0.8.16
type Request struct {
AccessToken string `json:"X-Dgraph-AccessToken"`
Args map[string]json.RawMessage `json:"args"`
Field InfoField `json:"info"`
AuthHeader AuthHeader `json:"authHeader"`
Resolver string `json:"resolver"`
Parents json.RawMessage `json:"parents"`
Event *Event `json:"event"`
}
type SelectionField ¶ added in v0.8.16
type SelectionField struct {
Alias string `json:"alias"`
Name string `json:"name"`
Arguments map[string]json.RawMessage `json:"arguments"`
Directives []Directive `json:"directives"`
SelectionSet []SelectionField `json:"slectionSet"`
}
type UpdateEventInfo ¶ added in v0.8.2
Click to show internal directories.
Click to hide internal directories.