Documentation ¶
Index ¶
Constants ¶
View Source
const ( SubConnectionInit = "connection_init" SubConnectionAck = "connection_ack" SubConnectionKeepAlive = "ka" SubConnectionError = "connection_error" SubConnectionTerminate = "connection_terminate" SubStart = "start" SubData = "data" SubError = "error" SubComplete = "complete" SubStop = "stop" )
Variables ¶
This section is empty.
Functions ¶
func IsBatchMode ¶
Types ¶
type ClientSubMsg ¶ added in v0.2.0
type ClientSubMsg struct { ID string `json:"id,omitempty"` Type string `json:"type"` Payload *Request `json:"payload,omitempty"` }
ClientSubMsg defines possible client messages
type ParseRequestResponse ¶
ParseRequestResponse is an resulting object of ParseRequestQuery. It contains requests array and indicator, if request was running in batch mode.
type Request ¶
type Request struct { Original *http.Request `json:"-"` Query string `json:"query"` Variables map[string]interface{} `json:"variables"` OperationName *string `json:"operationName"` }
Request represents single request send via HTTP
type ServerSubErorrMsg ¶ added in v0.2.0
type ServerSubErorrMsg struct { ID string `json:"id,omitempty"` Type string `json:"type"` Payload gqlerrors.ErrorList `json:"payload,omitempty"` }
ServerSubErrorMsg defines msg for type error
type ServerSubMsg ¶ added in v0.2.0
type ServerSubMsg struct { ID string `json:"id,omitempty"` Type string `json:"type"` Payload *Response `json:"payload,omitempty"` }
ServerSubMsg defines possible server messages
Click to show internal directories.
Click to hide internal directories.