Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlaygroundHandler ¶
func PlaygroundHandler(endpoint string) router.HandlerFunc
PlaygroundHandler GraphQL Playground 处理器
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder Schema 构建器
type GraphQLError ¶
GraphQLError GraphQL 错误
type Request ¶
type Request struct {
Query string `json:"query"`
OperationName string `json:"operationName,omitempty"`
Variables map[string]interface{} `json:"variables,omitempty"`
}
Request GraphQL 请求
type Response ¶
type Response struct {
Data interface{} `json:"data,omitempty"`
Errors []GraphQLError `json:"errors,omitempty"`
}
Response GraphQL 响应
func (Response) MarshalJSON ¶
MarshalJSON 自定义 JSON 序列化
Click to show internal directories.
Click to hide internal directories.