Documentation ¶
Index ¶
- func JSON(input interface{}) []byte
- type Context
- type MGQL
- func (m *MGQL) Handler() http.HandlerFunc
- func (m *MGQL) Mutation(operationName string, responseResolver ResponseResolver)
- func (m *MGQL) Query(operationName string, responseResolver ResponseResolver)
- func (m *MGQL) Reset()
- func (m *MGQL) SpyMutation(operationName string, responseResolver ResponseResolver)
- func (m *MGQL) SpyQuery(operationName string, responseResolver ResponseResolver)
- type Map
- type ResponseResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Variables map[string]interface{} // contains filtered or unexported fields }
func (*Context) GraphqlError ¶
type MGQL ¶
type MGQL struct {
// contains filtered or unexported fields
}
func (*MGQL) Handler ¶
func (m *MGQL) Handler() http.HandlerFunc
func (*MGQL) Mutation ¶
func (m *MGQL) Mutation(operationName string, responseResolver ResponseResolver)
func (*MGQL) Query ¶
func (m *MGQL) Query(operationName string, responseResolver ResponseResolver)
func (*MGQL) SpyMutation ¶
func (m *MGQL) SpyMutation(operationName string, responseResolver ResponseResolver)
func (*MGQL) SpyQuery ¶
func (m *MGQL) SpyQuery(operationName string, responseResolver ResponseResolver)
type ResponseResolver ¶
type ResponseResolver func(ctx Context)
Click to show internal directories.
Click to hide internal directories.