Documentation
¶
Overview ¶
* mrthn API * * One login for all your fitness data needs. * * API version: 0.1.0
* mrthn API * * One login for all your fitness data needs. * * API version: 0.1.0
* mrthn API * * One login for all your fitness data needs. * * API version: 0.1.0
* mrthn API * * One login for all your fitness data needs. * * API version: 0.1.0
Index ¶
- func Logger(log *logrus.Logger, next http.Handler, name string) http.Handler
- func NewRouter(db *sql.DB, logger *logrus.Logger, authTypes auth.Types, ...) *mux.Router
- func SendErrorToClient(w http.ResponseWriter, log *logrus.Logger)
- func SetupLogger(logToStderr bool) *logrus.Logger
- type Api
- func (api *Api) Callback(w http.ResponseWriter, r *http.Request)
- func (api *Api) GetClientCallback(w http.ResponseWriter, r *http.Request)
- func (api *Api) GetToken(w http.ResponseWriter, r *http.Request)
- func (api *Api) GetValueDaily(w http.ResponseWriter, r *http.Request)
- func (api *Api) GetValueOverPeriod(w http.ResponseWriter, r *http.Request)
- func (api *Api) Index(w http.ResponseWriter, r *http.Request)
- func (api *Api) Login(w http.ResponseWriter, r *http.Request)
- func (api *Api) SignIn(w http.ResponseWriter, r *http.Request)
- func (api *Api) SignUp(w http.ResponseWriter, r *http.Request)
- func (api *Api) UpdateClientCallback(w http.ResponseWriter, r *http.Request)
- type CallbackUpdateResponse
- type ClientSignInResponse
- type ClientSignUpResponse
- type GetCallbackResponse
- type GetValueResponse
- type Route
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendErrorToClient ¶
func SendErrorToClient(w http.ResponseWriter, log *logrus.Logger)
func SetupLogger ¶
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) GetClientCallback ¶
func (api *Api) GetClientCallback(w http.ResponseWriter, r *http.Request)
func (*Api) GetValueDaily ¶
func (api *Api) GetValueDaily(w http.ResponseWriter, r *http.Request)
func (*Api) GetValueOverPeriod ¶
func (api *Api) GetValueOverPeriod(w http.ResponseWriter, r *http.Request)
func (*Api) UpdateClientCallback ¶
func (api *Api) UpdateClientCallback(w http.ResponseWriter, r *http.Request)
type CallbackUpdateResponse ¶
type ClientSignInResponse ¶
type ClientSignUpResponse ¶
type GetCallbackResponse ¶
type GetValueResponse ¶
type GetValueResponse struct { ID int `json:"id,omitempty"` Result []model.ValueResult `json:"result,omitempty"` }
Click to show internal directories.
Click to hide internal directories.