Documentation ¶
Index ¶
- Constants
- func AnnotateContext(ctx context.Context, req *http.Request) (context.Context, error)
- func Context(ctx context.Context) context.Context
- func GrpcTimeout(ctx context.Context) time.Duration
- type ServeMux
- func (s *ServeMux) AddField(typename, name string, field *graphql.Field)
- func (s *ServeMux) AddLoader(key string, loader dataloader.BatchFunc)
- func (s *ServeMux) AddMutation(name string, field *graphql.Field)
- func (s *ServeMux) AddObjectType(obj *graphql.Object)
- func (s *ServeMux) AddQuery(name string, field *graphql.Field)
- func (s *ServeMux) AddSubscribe(name string, field *graphql.Field)
- func (s *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *ServeMux) Use(middlewares ...func(http.Handler) http.Handler)
Constants ¶
View Source
const (
MetadataPrefix = "gqlgateway-"
)
Variables ¶
This section is empty.
Functions ¶
func AnnotateContext ¶
Types ¶
type ServeMux ¶
type ServeMux struct {
// contains filtered or unexported fields
}
func NewServeMux ¶
func (*ServeMux) AddLoader ¶
func (s *ServeMux) AddLoader(key string, loader dataloader.BatchFunc)
AddLoader TODO: data loader
func (*ServeMux) AddObjectType ¶
Click to show internal directories.
Click to hide internal directories.