Major 'internal' package refactor

This commit is contained in:
David Allen 2024-08-07 10:59:10 -06:00
parent 2c841906b2
commit 6d1dae25ec
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
9 changed files with 359 additions and 191 deletions

10
internal/cache/cache.go vendored Normal file
View file

@ -0,0 +1,10 @@
package cache
import "database/sql/driver"
type Cache[T any] interface {
CreateIfNotExists(path string) (driver.Connector, error)
Insert(path string, data ...T) error
Delete(path string, data ...T) error
Get(path string) ([]T, error)
}