code

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushGatewayCache

func FlushGatewayCache(db sqlx.Ext) error

FlushGatewayCache flushes the gateway cache.

func FlushProfilesCache

func FlushProfilesCache(p *redis.Pool, db sqlx.Queryer) error

FlushProfilesCache fixes an issue with the device-profile and service-profile cache in Redis. As the struct changed the cached value from LoRa Server v1 can't be unmarshaled into the LoRa Server v2 struct and therefore we need to flush the cache.

func Migrate

func Migrate(name string, f func(db sqlx.Ext) error) error

Migrate checks if the given function code has been applied and if not it will execute the given function.

func MigrateGatewayStats

func MigrateGatewayStats(p *redis.Pool, db sqlx.Queryer) error

MigrateGatewayStats migrates the gateway stats from PostgreSQL to Redis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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