Documentation ¶
Index ¶
- Constants
- type Database
- func (d *Database) CreateSession(sid string, phishlet string, landing_url string, useragent string, ...) error
- func (d *Database) DeleteSession(sid string) error
- func (d *Database) DeleteSessionById(id int) error
- func (d *Database) Flush()
- func (d *Database) ListSessions() ([]*Session, error)
- func (d *Database) SetSessionCustom(sid string, name string, value string) error
- func (d *Database) SetSessionPassword(sid string, password string) error
- func (d *Database) SetSessionTokens(sid string, tokens map[string]map[string]*Token) error
- func (d *Database) SetSessionUsername(sid string, username string) error
- type Session
- type Token
Constants ¶
View Source
const SessionTable = "sessions"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) CreateSession ¶
func (*Database) DeleteSession ¶
func (*Database) DeleteSessionById ¶
func (*Database) ListSessions ¶
func (*Database) SetSessionCustom ¶
func (*Database) SetSessionPassword ¶
func (*Database) SetSessionTokens ¶
type Session ¶
type Session struct { Id int `json:"id"` Phishlet string `json:"phishlet"` LandingURL string `json:"landing_url"` Username string `json:"username"` Password string `json:"password"` Custom map[string]string `json:"custom"` Tokens map[string]map[string]*Token `json:"tokens"` SessionId string `json:"session_id"` UserAgent string `json:"useragent"` RemoteAddr string `json:"remote_addr"` CreateTime int64 `json:"create_time"` UpdateTime int64 `json:"update_time"` }
Click to show internal directories.
Click to hide internal directories.