Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionHandler ¶
ActionHandler represents a Hasura action request handler. It returns an interface to be returned to the called, or an error if something is wrong
type ActionsWorker ¶
type ActionsWorker struct {
// contains filtered or unexported fields
}
ActionsWorker represents the worker that is used to handle Hasura actions queries
func NewActionsWorker ¶
func NewActionsWorker(context *Context) *ActionsWorker
NewActionsWorker returns a new ActionsWorker instance
func (*ActionsWorker) RegisterHandler ¶
func (w *ActionsWorker) RegisterHandler(path string, handler ActionHandler)
RegisterHandler registers the provided handler to be used on each call to the provided path
type Coin ¶
func ConvertCoins ¶
type Context ¶
Context contains the data about a Hasura actions worker execution
func NewContext ¶
NewContext returns a new Context instance
type GraphQLError ¶
type GraphQLError struct {
Message string `json:"message"`
}
type Payload ¶
type Payload struct { SessionVariables map[string]interface{} `json:"session_variables"` Input PayloadArgs `json:"input"` }
Payload contains the payload data that is sent from Hasura
func (*Payload) GetAddress ¶
GetAddress returns the address associated with this payload, if any
Click to show internal directories.
Click to hide internal directories.