receiver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	common.Configuration
	Stream io.Writer // The Stream to write to
}

Config contains custom configuration for a session

type Session

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

Session is a receiver session

func New

func New(f io.Writer) *Session

New creates a new receiver session

func NewWith

func NewWith(c Config) *Session

NewWith createa a new receiver Session with custom configuration

func (*Session) Initialize

func (s *Session) Initialize() error

Initialize creates the connection, the datachannel and creates the offer

func (*Session) SetStream

func (s *Session) SetStream(stream io.Writer)

SetStream changes the stream, useful for WASM integration

func (*Session) Start

func (s *Session) Start() error

Start initializes the connection and the file transfer

Jump to

Keyboard shortcuts

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