initial commit
This commit is contained in:
18
backend/internal/store/interface.go
Normal file
18
backend/internal/store/interface.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Store interface {
|
||||
// Settings Methods
|
||||
SaveSettings(*Settings) error
|
||||
GetSettings() (*Settings, error)
|
||||
|
||||
// Chat Methods
|
||||
GetChat(chatID uuid.UUID) (*Chat, error)
|
||||
DeleteChat(chatID uuid.UUID) error
|
||||
ListChats() ([]*Chat, error)
|
||||
SaveChat(*Chat) error
|
||||
SaveChatMessage(*Message) error
|
||||
}
|
||||
Reference in New Issue
Block a user