Documentation
¶
Index ¶
- Constants
- func AllowedRoles() []string
- type MockSessionManager
- func (parseM *MockSessionManager) ClearCookie() *http.Cookie
- func (parseM *MockSessionManager) RequireInternalSession(parseW http.ResponseWriter, parseR *http.Request) *Session
- func (parseM *MockSessionManager) Resolve(parseR *http.Request) *Session
- func (parseM *MockSessionManager) StartCookie(parseRole string) *http.Cookie
- type Session
Constants ¶
View Source
const MockSessionCookieName = "atlas_mock_role"
View Source
const MockSignInPath = "/auth/mock-sign-in"
Variables ¶
This section is empty.
Functions ¶
func AllowedRoles ¶
func AllowedRoles() []string
Types ¶
type MockSessionManager ¶
type MockSessionManager struct{}
func NewMockSessionManager ¶
func NewMockSessionManager() *MockSessionManager
func (*MockSessionManager) ClearCookie ¶
func (parseM *MockSessionManager) ClearCookie() *http.Cookie
func (*MockSessionManager) RequireInternalSession ¶
func (parseM *MockSessionManager) RequireInternalSession(parseW http.ResponseWriter, parseR *http.Request) *Session
func (*MockSessionManager) Resolve ¶
func (parseM *MockSessionManager) Resolve(parseR *http.Request) *Session
func (*MockSessionManager) StartCookie ¶
func (parseM *MockSessionManager) StartCookie(parseRole string) *http.Cookie
Click to show internal directories.
Click to hide internal directories.