19 lines
346 B
Go
19 lines
346 B
Go
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
|
|
}
|