Documentation
¶
Index ¶
- type Admin
- type Adminer
- type ExtendSessionCall
- type ExtendSessionResponse
- type LoginCall
- type LoginResponse
- type MockAdmin
- func (m *MockAdmin) ExtendSession(token string) error
- func (m *MockAdmin) Login(username string, password string) (string, error)
- func (m *MockAdmin) SetExtendSessionResponse(response ExtendSessionResponse)
- func (m *MockAdmin) SetLoginResponse(response LoginResponse)
- func (m *MockAdmin) SetValidateSessionResponse(response ValidateSessionResponse)
- func (m *MockAdmin) ValidateSession(token string) (bool, error)
- type ValidateSessionCall
- type ValidateSessionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
func (*Admin) ExtendSession ¶
type ExtendSessionCall ¶
type ExtendSessionCall struct {
Token string
}
type ExtendSessionResponse ¶
type ExtendSessionResponse struct {
Error error
}
type LoginResponse ¶
type MockAdmin ¶
type MockAdmin struct {
ExtendSessionCalls []ExtendSessionCall
ExtendSessionResponse ExtendSessionResponse
LoginCalls []LoginCall
LoginResponse LoginResponse
ValidateSessionCalls []ValidateSessionCall
ValidateSessionResponse ValidateSessionResponse
}
func (*MockAdmin) ExtendSession ¶
func (*MockAdmin) SetExtendSessionResponse ¶
func (m *MockAdmin) SetExtendSessionResponse(response ExtendSessionResponse)
func (*MockAdmin) SetLoginResponse ¶
func (m *MockAdmin) SetLoginResponse(response LoginResponse)
func (*MockAdmin) SetValidateSessionResponse ¶
func (m *MockAdmin) SetValidateSessionResponse(response ValidateSessionResponse)
type ValidateSessionCall ¶
type ValidateSessionCall struct {
Token string
}
type ValidateSessionResponse ¶
Click to show internal directories.
Click to hide internal directories.