Mostly finish docs

Actually start to parse things
This commit is contained in:
Caleb Gardner
2024-05-19 06:47:41 -05:00
parent f7bbdaa4b3
commit 4244b6985a
11 changed files with 270 additions and 20 deletions
+23
View File
@@ -0,0 +1,23 @@
package darkstorm
import "errors"
var (
ErrIDNotFound = errors.New("id not found in table")
)
type IDStruct interface {
GetID() string
}
type Table[T IDStruct] interface {
Get(ID string) (data T, err error)
Insert(data T) error
Update(data T) error
Remove(ID string)
}
type CrashTable interface {
Table[CrashReport]
InsertCrash(report IndividualCrash) error
}