Documentation
¶
Index ¶
- type Config
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) Create(ctx context.Context, sess *session.Session) error
- func (s *Storage) Delete(ctx context.Context, sessionID string) error
- func (s *Storage) Get(ctx context.Context, sessionID string) (*session.Session, error)
- func (s *Storage) List(ctx context.Context, filters map[string]interface{}) ([]*session.Session, error)
- func (s *Storage) ListByAgent(ctx context.Context, agentID string) ([]*session.Session, error)
- func (s *Storage) ListByUser(ctx context.Context, userID string) ([]*session.Session, error)
- func (s *Storage) Update(ctx context.Context, sess *session.Session) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage persists sessions in SQLite.
func NewStorage ¶
NewStorage constructs a new SQLite-backed session storage.
func (*Storage) List ¶
func (s *Storage) List(ctx context.Context, filters map[string]interface{}) ([]*session.Session, error)
List returns sessions that match optional filters.
func (*Storage) ListByAgent ¶
ListByAgent returns sessions for the given agent ID.
func (*Storage) ListByUser ¶
ListByUser returns sessions for the given user ID.
Click to show internal directories.
Click to hide internal directories.