controllers

package
v1.0.4-0...-7069f2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 10 Imported by: 0

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

List handles incoming data list requests

func (*DataController) Save

Save handles incoming data insertion requests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL