func Get() map[string]string {
	mux.RLock()
	defer mux.RUnlock()
	return cached
}
Get returns the (cached) metadata.
package metadata
import (
	"context"
	"os/exec"
	"strings"
	"sync"
	"time"
	"unicode/utf8"
	"github.com/pkg/errors"
	log "github.com/sirupsen/logrus"
	"github.com/brocaar/chirpstack-gateway-bridge/internal/commands"
	"github.com/brocaar/chirpstack-gateway-bridge/internal/config"
)
var (
	mux sync.RWMutex
	static map[string]string
	cmnds  map[string]string
	cached map[string]string
	interval       time.Duration
	maxExecution   time.Duration
	splitDelimiter string
)
func Setup(conf config.Config) error {
	mux.Lock()
	defer mux.Unlock()
	static = conf.MetaData.Static
	cmnds = conf.MetaData.Dynamic.Commands
	interval = conf.MetaData.Dynamic.ExecutionInterval
	maxExecution = conf.MetaData.Dynamic.MaxExecutionDuration
	splitDelimiter = conf.MetaData.Dynamic.SplitDelimiter
	go func() {
		for {
			runCommands()
			time.Sleep(interval)
		}
	}()
	return nil
}