Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitiateLog ¶
func InitiateLog(level string)
Types ¶
type Hasura ¶
type Hasura struct { GraphqlURL string Secret string Query string ResponseKey string ResponseModel interface{} }
func (*Hasura) SetResponseKey ¶
func (*Hasura) SetResponseModel ¶
type HasuraResponseSchema ¶
type HasuraResponseSchema struct { Data interface{} `json:"data,omitempty"` Errors interface{} `json:"errors,omitempty"` }
type IEcho ¶
type IEcho interface { // GetApp returns echo.Echo object GetApp() *echo.Echo // Start starts the application server Start(addr string) }
type IHasura ¶
type IHasura interface { // SetResponseKey sets response key // e.g. in hasura return data.user then response key is "user" SetResponseKey(key string) IHasura // SetResponseModel sets response model/schema // Struct with json tag SetResponseModel(model interface{}) IHasura // Exec returns nil if calling graphql API returns success Exec(variables interface{}, headers map[string]string) error }
type IJwt ¶
Click to show internal directories.
Click to hide internal directories.