Documentation ¶
Index ¶
- func HandlerUserCreate(w http.ResponseWriter, r *http.Request) (interface{}, *api.Error)
- func HandlerUserDelete(w http.ResponseWriter, r *http.Request) (interface{}, *api.Error)
- func HandlerUserDetail(w http.ResponseWriter, r *http.Request) (interface{}, *api.Error)
- func HandlerUserList(w http.ResponseWriter, r *http.Request) (interface{}, *api.Error)
- func HandlerUserLogin(w http.ResponseWriter, r *http.Request) (interface{}, *api.Error)
- func HandlerUserRegister(w http.ResponseWriter, r *http.Request) (interface{}, *api.Error)
- func HandlerUserUpdate(w http.ResponseWriter, r *http.Request) (interface{}, *api.Error)
- func Init(lg *logging.Logger, db *sql.DB, cache *redis.Pool, opt InitOption)
- func InitSchema() (graphql.Schema, error)
- func ParseBodyData(ctx context.Context, r *http.Request, data interface{}) error
- type HandlerFunc
- type InitOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerUserCreate ¶
func HandlerUserDelete ¶
func HandlerUserDetail ¶
func HandlerUserList ¶
func HandlerUserLogin ¶
func HandlerUserRegister ¶
func HandlerUserUpdate ¶
func InitSchema ¶
Types ¶
type HandlerFunc ¶
func (HandlerFunc) ServeHTTP ¶
func (fn HandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type InitOption ¶
type InitOption struct{}
Click to show internal directories.
Click to hide internal directories.