code

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 10 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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