session

package
v0.0.0-...-384ce83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 1 Imported by: 0

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

func NewSession(sessionID, clientID, processID id.ID) Session

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL