Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockSession ¶
type MockSession struct{}
MockSession define mock receiver
func (MockSession) Check ¶
func (ms MockSession) Check(c *redigomock.Conn) http.HandlerFunc
Check if session is active
func (MockSession) CheckToken ¶
func (ms MockSession) CheckToken(conn *redigomock.Conn, inputVal string) bool
CheckToken mocks the CheckToken method on Session receiver
func (MockSession) CreateToken ¶
func (ms MockSession) CreateToken(conn *redigomock.Conn, inputVal string)
CreateToken mocks token generation
func (MockSession) Start ¶
func (ms MockSession) Start(mc *redigomock.Conn) http.HandlerFunc
Start mocks machine ID and hashing http response
type Runner ¶
type Runner interface {
Start() http.HandlerFunc
}
Runner is the main server interface
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session management object
func (Session) Check ¶
func (s Session) Check(c redis.Conn) http.HandlerFunc
Check if session is active
Click to show internal directories.
Click to hide internal directories.