simulator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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