Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
SQLStore ..
func NewSQLStore ¶
NewSQLStore returns an initialized sql store. It takes the db path as its only arugment and returns an error if it cannot connect to the database.
func (SQLStore) GetAllPairs ¶
func (s SQLStore) GetAllPairs(room int64) []domain.InputOutput
GetAllPairs is used for testing to retrieve the pairs for a given room
func (SQLStore) Response ¶
Response gets the available pairs from the database and runs the SoftMatch algorithm returning the found pair and the score of the pair.
func (SQLStore) SaveInputOutput ¶
func (s SQLStore) SaveInputOutput(io domain.InputOutput) error
SaveInputOutput saves the provided input output pair
Click to show internal directories.
Click to hide internal directories.