code

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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(db *common.DBLogger, name string, f func() 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