mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
16 lines
388 B
Go
16 lines
388 B
Go
package firewalldb
|
|
|
|
import (
|
|
"context"
|
|
|
|
"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
|
|
|
|
// GetSession returns the session for a specific id.
|
|
GetSession(context.Context, session.ID) (*session.Session, error)
|
|
}
|