mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
SessionDB is an interface that gives helper methods for how privacy mapping should be done. A mock for SessionDB is added to save on some code repetition, the privacy flags functionality is used in a later test.
12 lines
362 B
Go
12 lines
362 B
Go
package firewalldb
|
|
|
|
import "github.com/lightninglabs/lightning-terminal/session"
|
|
|
|
// SessionDB is an interface that abstracts the database operations needed for
|
|
// the privacy mapper to function.
|
|
type SessionDB interface {
|
|
session.IDToGroupIndex
|
|
|
|
// GetSessionByID returns the session for a specific id.
|
|
GetSessionByID(session.ID) (*session.Session, error)
|
|
}
|