Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session interface {
// SessionID is the unique ID that represents this session.
// This will be used in every transaction for validating the user.
SessionID() id.ID
// ClientID is the ID of the client that will be created when
// the client is created. This acts as a second layer check along
// with the sessionID.
ClientID() id.ID
// ProcessID the unique ID assigned for the process by the client.
// This will be the third layer check in the security mechanism.
ProcessID() id.ID
}
Session captures all necessary parameters necessary to describe a session with the lockservice in the lockclient.
func NewSession ¶
NewSession returns a new instance of a session with the given parameters.
type SimpleSession ¶
type SimpleSession struct {
// contains filtered or unexported fields
}
SimpleSession implements a session.
func (*SimpleSession) ClientID ¶
func (s *SimpleSession) ClientID() id.ID
ClientID returns the clientID of the SimpleSession.
func (*SimpleSession) ProcessID ¶
func (s *SimpleSession) ProcessID() id.ID
ProcessID returns the processID of the SimpleSession
func (*SimpleSession) SessionID ¶
func (s *SimpleSession) SessionID() id.ID
SessionID returns the sessionID of the SimpleSession.
Click to show internal directories.
Click to hide internal directories.