acceptance

package
v0.0.0-...-6789dc4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: GPL-3.0, GPL-3.0 Imports: 9 Imported by: 3

Documentation

Overview

Package acceptance contains the acceptance client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSession

type ClientSession struct {
	// configuration
	DeviceId        string
	Model           string
	ImageChannel    string
	BuildNumber     int32
	ServerAddr      string
	ExchangeTimeout time.Duration
	ReportPings     bool
	Levels          map[string]int64
	TLSConfig       *tls.Config
	Prefix          string // prefix for events
	Auth            string

	ReportSetParams bool
	DontClose       bool
	SlowStart       time.Duration
	// connection
	Connection net.Conn
	// contains filtered or unexported fields
}

ClienSession holds a client<->server session and its configuration.

func (*ClientSession) Dial

func (sess *ClientSession) Dial() error

Dial connects to a server using the configuration in the ClientSession and sets up the connection.

func (*ClientSession) GetCookie

func (sess *ClientSession) GetCookie() string

GetCookie gets the current cookie.

func (*ClientSession) Run

func (sess *ClientSession) Run(events chan<- string) error

Run the session with the server, emits a stream of events.

func (*ClientSession) SetCookie

func (sess *ClientSession) SetCookie(cookie string)

SetCookie sets the current cookie.

func (*ClientSession) TLSWrapAndSet

func (sess *ClientSession) TLSWrapAndSet(conn net.Conn)

TLSWrapAndSet wraps a socket connection in tls and sets it as session.Connection. For use instead of Dial().

Directories

Path Synopsis
acceptanceclient command for playing.
acceptanceclient command for playing.
Package kit contains reusable building blocks for acceptance.
Package kit contains reusable building blocks for acceptance.
Package suites contains reusable acceptance test suites.
Package suites contains reusable acceptance test suites.

Jump to

Keyboard shortcuts

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