Skip to content

Commit

Permalink
Remove 'gorilla.go', update interface in 'conn.go'
Browse files Browse the repository at this point in the history
The 'gorilla.go' file has been deleted from the 'pkg/conn/gorilla' directory. Additionally, connection interface in 'conn.go' from the 'pkg/conn' directory has been updated to include Start() method. Also, the functionality to start a database connection has been added in 'db.go'.
  • Loading branch information
jmcarbo committed May 12, 2024
1 parent fab55c8 commit 0570958
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 358 deletions.
4 changes: 4 additions & 0 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func (db *DB) Close() error {
return db.conn.Close()
}

func (db *DB) Start() error {
return db.conn.Start()
}

// --------------------------------------------------

// Use is a method to select the namespace and table to use.
Expand Down
1 change: 1 addition & 0 deletions pkg/conn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var (
type Connection interface {
Connect(url string) (Connection, error)
Send(method string, params []interface{}) (interface{}, error)
Start() error
Close() error
LiveNotifications(id string) (chan model.Notification, error)
}
358 changes: 0 additions & 358 deletions pkg/conn/gorilla/gorilla.go

This file was deleted.

0 comments on commit 0570958

Please sign in to comment.