receiver

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

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

func NewReceiver

func NewReceiver(programOptions models.TranOptions) *Receiver

func WithUI

func WithUI(r *Receiver, ui chan<- UIUpdate) *Receiver

func (*Receiver) ConnectToTranx

func (r *Receiver) ConnectToTranx(tranxAddress string, tranxPort int, password models.Password) (*websocket.Conn, error)

func (*Receiver) PayloadSize

func (r *Receiver) PayloadSize() int64

func (*Receiver) Receive

func (r *Receiver) Receive(wsConn *websocket.Conn, buffer io.Writer) error

func (*Receiver) TranxAddress

func (r *Receiver) TranxAddress() string

func (*Receiver) TranxPort

func (r *Receiver) TranxPort() int

func (*Receiver) UsedRelay

func (r *Receiver) UsedRelay() bool

type UIUpdate

type UIUpdate struct {
	Progress float32
}

Jump to

Keyboard shortcuts

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