Versions in this module Expand all Collapse all v0 v0.23.0 Jan 14, 2024 Changes in this version + func MarshalRequest(args, v interface{}, isCamel bool) error + func MarshalResponse(resp interface{}) interface + type GraphqlError = gqlerrors.FormattedError + type GraphqlErrorHandler func(errs []GraphqlError) + type GraphqlHandler interface + CreateConnection func(context.Context) (*grpc.ClientConn, func(), error) + GetMutations func(*grpc.ClientConn) graphql.Fields + GetQueries func(*grpc.ClientConn) graphql.Fields + type GraphqlRequest struct + OperationName string + Query string + Variables map[string]interface{} + type MiddlewareError struct + Code string + Message string + func NewMiddlewareError(code, message string) *MiddlewareError + func (m *MiddlewareError) Error() string + type MiddlewareFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request) (context.Context, error) + func Cors() MiddlewareFunc + type ServeMux struct + ErrorHandler GraphqlErrorHandler + func NewServeMux(ms ...MiddlewareFunc) *ServeMux + func (s *ServeMux) AddHandler(h GraphqlHandler) error + func (s *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *ServeMux) Use(ms ...MiddlewareFunc) *ServeMux