mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
5949ed2a44
* Move browser CRUD to messenger ns * Remove tests * Create new endpoints for browsers CRUD * Move tests to correct ns * Lintil soup * Fix tests * Lint * Bump status-go Co-authored-by: Ibrahem Khalil <33176106+vampirekiddo@users.noreply.github.com>
20 lines
477 B
Go
20 lines
477 B
Go
package protocol
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/status-im/status-go/services/browsers"
|
|
)
|
|
|
|
func (m *Messenger) AddBrowser(ctx context.Context, browser browsers.Browser) error {
|
|
return m.persistence.AddBrowser(browser)
|
|
}
|
|
|
|
func (m *Messenger) GetBrowsers(ctx context.Context) (browsers []*browsers.Browser, err error) {
|
|
return m.persistence.GetBrowsers()
|
|
}
|
|
|
|
func (m *Messenger) DeleteBrowser(ctx context.Context, id string) error {
|
|
return m.persistence.DeleteBrowser(id)
|
|
}
|