session

package
v0.0.0-...-f567649 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDialer   = websocket.DefaultDialer
	DefaultUpgrader = &websocket.Upgrader{
		CheckOrigin: func(r *http.Request) bool {
			return true
		},
	}
)

Functions

This section is empty.

Types

type CustomCopyHeader

type CustomCopyHeader func(r *http.Request, output http.Header)

type FilenameGenerator

type FilenameGenerator func(ext string) string

type MessageWriter

type MessageWriter interface {
	Init() error
	Write([]byte) error
	WriteValue(*v8go.Value) error
}

func NewMessageWriter

func NewMessageWriter(baseDir string, sessionID string, gen FilenameGenerator) MessageWriter

type Middleware

type Middleware v8go.Function

type Opts

type Opts struct {
	TargetURL  *url.URL
	Script     string
	RecordDir  string
	RespWriter http.ResponseWriter
	Request    *http.Request
}

type Session

type Session interface {
	Start()
}

func NewSession

func NewSession(opts *Opts) (Session, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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