Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSessionNotFound = errors.New("session not found.")
)
Functions ¶
func NewSessionManager ¶
func NewSessionManager(pvdr sessPvdr.Providers, ucPvdr core.UserContextProvider) sessPvdr.SessionManager
Types ¶
type SessionContext ¶
type SessionContext struct {
// contains filtered or unexported fields
}
func (*SessionContext) Cert ¶
func (ctx *SessionContext) Cert() []byte
func (*SessionContext) Org ¶
func (ctx *SessionContext) Org() string
func (*SessionContext) SessionID ¶
func (ctx *SessionContext) SessionID() string
func (*SessionContext) UserData ¶
func (ctx *SessionContext) UserData() *fabMspPvdr.UserData
func (*SessionContext) UserName ¶
func (ctx *SessionContext) UserName() string
type SessionDB ¶
type SessionDB struct {
// contains filtered or unexported fields
}
func NewSessionDB ¶
func NewSessionDB(cfg config.SQLDBConfig) (*SessionDB, error)
func (*SessionDB) GetSessionContext ¶
func (sessDB *SessionDB) GetSessionContext(username, org, sessionID string) (session.SessionContext, error)
func (*SessionDB) WriteSessionContext ¶
func (sessDB *SessionDB) WriteSessionContext(ctx session.SessionContext) error
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func (*SessionManager) GetSession ¶
func (mgr *SessionManager) GetSession(username, org, sessionID string) (sessPvdr.Session, error)
func (*SessionManager) NewSession ¶
Click to show internal directories.
Click to hide internal directories.