func New() *DB {
	return &DB{
		ResourcesByID:         make(map[manifold.ID]Resource),
		CredentialsByResource: make(map[manifold.ID][]Credential),
		CredentialsByID:       make(map[manifold.ID]Credential),
		MeasuresByResource:    make(map[manifold.ID][]Measure),
	}
}
New creates a new DB instance in-memory
package db
import (
	"time"
	manifold "github.com/manifoldco/go-manifold"
)
type DB struct {
	ResourcesByID         map[manifold.ID]Resource
	CredentialsByResource map[manifold.ID][]Credential
	CredentialsByID       map[manifold.ID]Credential
	MeasuresByResource    map[manifold.ID][]Measure
}