Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataController ¶
type DataController struct { DataInteractor interactor.Interactor // contains filtered or unexported fields }
DataController handles data operations in the storage.
func NewDataController ¶
func NewDataController(dataInteractor interactor.Interactor, logger logging.Logger) *DataController
NewDataController constructs the DataController.
func (*DataController) DeleteAll ¶
func (d *DataController) DeleteAll(w http.ResponseWriter, r *http.Request)
DeleteAll handles request to delete all the data associated with the user
func (*DataController) DeleteByDeviceID ¶
func (d *DataController) DeleteByDeviceID(w http.ResponseWriter, r *http.Request)
DeleteByDeviceID handles request to delete data by device ID
func (*DataController) List ¶
func (d *DataController) List(w http.ResponseWriter, r *http.Request)
List handles incoming data list requests
func (*DataController) Save ¶
func (d *DataController) Save(w http.ResponseWriter, r *http.Request)
Save handles incoming data insertion requests.
Click to show internal directories.
Click to hide internal directories.