Documentation ¶
Overview ¶
Apex Controller Simulator
The simulator is currently a work in progress. When its structure matures, this may move into a dedicated repository.
Index ¶
Constants ¶
View Source
const (
COOKIE_SID = "connect.sid"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller simulates a local Apex controller.
func NewController ¶
func NewController(login, password string) *Controller
NewController returns a new Apex Controller simulator.
func (*Controller) InvalidateAllSessions ¶
func (s *Controller) InvalidateAllSessions()
InvalidateAllSessions kills all existing sessions.
func (*Controller) InvalidateSession ¶
func (s *Controller) InvalidateSession(sid string)
InvalidateSession kills the given session.
func (*Controller) ServeHTTP ¶
func (s *Controller) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
Click to show internal directories.
Click to hide internal directories.