session

package
v0.0.0-...-8257b7f Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger logger.Logger, creators ...Creator) shuttler.Shuttler

Types

type Creator

type Creator interface {
	Create() Mutator
}

type Direction

type Direction int
const (
	Forward Direction = iota + 1
	Backward
)

type Mutator

type Mutator interface {
	MutateForward(w io.Writer, r io.Reader, sp Parameters)
	MutateBackward(w io.Writer, r io.Reader, sp Parameters)
}

type Parameters

type Parameters struct {
	Client    string
	Server    string
	Sni       string
	Timestamp string
}

func NewParameters

func NewParameters(client, server shuttler.Connection, ts int64) *Parameters

type Session

type Session struct {
	// contains filtered or unexported fields
}

func (*Session) Shuttle

func (s *Session) Shuttle(client, server shuttler.Connection)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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