util

package
v0.0.0-...-6a7c284 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package main

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Form string

	StringData string

	// Variables for file transfers
	BytePos   int64
	FileData  []byte
	Completed bool
}

func (*Packet) GetBytePos

func (packet *Packet) GetBytePos() int64

func (*Packet) GetComplete

func (packet *Packet) GetComplete() bool

func (*Packet) GetFileData

func (packet *Packet) GetFileData() []byte

func (*Packet) GetForm

func (packet *Packet) GetForm() string

func (*Packet) GetStringData

func (packet *Packet) GetStringData() string

func (*Packet) SetBytePos

func (packet *Packet) SetBytePos(newBytePos int64)

func (*Packet) SetCompleted

func (packet *Packet) SetCompleted(newCompleted bool)

func (*Packet) SetFileData

func (packet *Packet) SetFileData(newFileData []byte)

func (*Packet) SetForm

func (packet *Packet) SetForm(newForm string)

func (*Packet) SetStringData

func (packet *Packet) SetStringData(newStringData string)

Jump to

Keyboard shortcuts

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