controllers

package
v0.0.0-...-1606966 Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
}

func NewAuthController

func NewAuthController() AuthController

func (AuthController) Authentication

func (ac AuthController) Authentication(c *gin.Context)

func (AuthController) LogOut

func (ac AuthController) LogOut(c *gin.Context)

func (AuthController) Preflight

func (ac AuthController) Preflight(c *gin.Context)

type DeviceController

type DeviceController struct {
}

Controller that gather all Device related methods

func NewDeviceController

func NewDeviceController() DeviceController

Initiate a controller for router

func (DeviceController) CreateDevice

func (dc DeviceController) CreateDevice(c *gin.Context)

Create a device

func (DeviceController) DeleteDevice

func (dc DeviceController) DeleteDevice(c *gin.Context)

Delete a specific device

func (DeviceController) GetAllDeviceLocations

func (dc DeviceController) GetAllDeviceLocations(c *gin.Context)

Getting all locations from a specific device

func (DeviceController) GetAllDeviceMessages

func (dc DeviceController) GetAllDeviceMessages(c *gin.Context)

Getting all messages from a specific device

func (DeviceController) GetDevice

func (dc DeviceController) GetDevice(c *gin.Context)

Getting details from a specific device

func (DeviceController) GetDeviceLastMessage

func (dc DeviceController) GetDeviceLastMessage(c *gin.Context)

Getting last message from a specific device

func (DeviceController) GetDevices

func (dc DeviceController) GetDevices(c *gin.Context)

Get all devices of a User

func (DeviceController) GetLastDeviceLocations

func (dc DeviceController) GetLastDeviceLocations(c *gin.Context)

Getting last locations from a specific device

func (DeviceController) GetLastDeviceMessages

func (dc DeviceController) GetLastDeviceMessages(c *gin.Context)

Getting last messages from a specific device

func (DeviceController) UpdateDevice

func (dc DeviceController) UpdateDevice(c *gin.Context)

Update a specific device

type FleetController

type FleetController struct {
}

FleetController handles things related to fleets

func NewFleetController

func NewFleetController() FleetController

NewFleetController instantiate a FleetController

func (FleetController) CreateFleet

func (fc FleetController) CreateFleet(c *gin.Context)

Creating a fleet

func (FleetController) DeleteFleet

func (fc FleetController) DeleteFleet(c *gin.Context)

Delete a fleet

func (FleetController) GetAverageTemperature

func (fc FleetController) GetAverageTemperature(c *gin.Context)

Getting mean Temperatures from all devices

func (FleetController) GetFleetById

func (fc FleetController) GetFleetById(c *gin.Context)

Getting a single fleet

func (FleetController) GetFleets

func (fc FleetController) GetFleets(c *gin.Context)

Getting all fleets

func (FleetController) GetTemperatures

func (fc FleetController) GetTemperatures(c *gin.Context)

Getting all Temperatures from all devices

type LocationController

type LocationController struct {
}

func NewLocationController

func NewLocationController() LocationController

func (LocationController) CreateLocation

func (lc LocationController) CreateLocation(c *gin.Context)

Create a single Location

func (LocationController) GetLastDevicesLocations

func (lc LocationController) GetLastDevicesLocations(c *gin.Context)

Getting Last Locations from all devices of a user

type SigfoxController

type SigfoxController struct {
}

func NewSigfoxController

func NewSigfoxController() SigfoxController

func (SigfoxController) CreateMessage

func (sc SigfoxController) CreateMessage(c *gin.Context)

func (SigfoxController) GetLastDevicesSigfoxMessages

func (sc SigfoxController) GetLastDevicesSigfoxMessages(c *gin.Context)

func (SigfoxController) ImportLocation

func (lc SigfoxController) ImportLocation(c *gin.Context)

Route for Sigfox Location creation without any rate limit (to import from Sigfox API quickly)

func (SigfoxController) ImportMessage

func (sc SigfoxController) ImportMessage(c *gin.Context)

Route for Sigfox Message creation without any rate limit (to import from Sigfox API quickly)

type UserController

type UserController struct{}

func NewUserController

func NewUserController() UserController

func (UserController) ActivateUser

func (uc UserController) ActivateUser(c *gin.Context)

func (UserController) CreateUser

func (uc UserController) CreateUser(c *gin.Context)

func (UserController) GetUser

func (uc UserController) GetUser(c *gin.Context)

Jump to

Keyboard shortcuts

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