Documentation ¶
Index ¶
- func MarshalID(kind string, spec interface{}) customtypes.ID
- func ToWsURL(url string) (string, error)
- func UnmarshalKind(id customtypes.ID) string
- func UnmarshalSpec(id customtypes.ID, v interface{}) error
- func Upgrade(w http.ResponseWriter, r *http.Request, ...)
- type Client
- type Handler
- type OperationMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalID ¶
func MarshalID(kind string, spec interface{}) customtypes.ID
func UnmarshalKind ¶
func UnmarshalKind(id customtypes.ID) string
func UnmarshalSpec ¶
func UnmarshalSpec(id customtypes.ID, v interface{}) error
func Upgrade ¶
func Upgrade(w http.ResponseWriter, r *http.Request, streamingHandlerFunc graphql.ServeGraphQLStreamFunc)
Types ¶
type Client ¶
type Client struct { URL string HTTPClient *http.Client RequestHeader http.Header // contains filtered or unexported fields }
func (*Client) ServeGraphQL ¶
func (*Client) ServeGraphQLStream ¶
func (client *Client) ServeGraphQLStream(request *graphql.Request) graphql.ResponseStream
type Handler ¶
type Handler struct { ServeGraphQL graphql.ServeGraphQLFunc ServeGraphQLStream graphql.ServeGraphQLStreamFunc MaxRequestSizeBytes int64 Indent string }
type OperationMessage ¶
type OperationMessage struct { Id interface{} `json:"id,omitempty"` Type string `json:"type,omitempty"` Payload json.RawMessage `json:"payload,omitempty"` }
Click to show internal directories.
Click to hide internal directories.