cargo

package
v0.0.0-...-aebf5ad Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CargoInfo

type CargoInfo struct {
	IP     string
	Port   string
	AppID  string
	UserID string
	// contains filtered or unexported fields
}

func InitCargo

func InitCargo(IP string, Port string, AppID string, UserID string) *CargoInfo

func (*CargoInfo) CleanUp

func (cargoInfo *CargoInfo) CleanUp()

func (*CargoInfo) Read

func (cargo *CargoInfo) Read(fileName string) string

func (*CargoInfo) Recv

func (cargo *CargoInfo) Recv(fileName string)

func (*CargoInfo) RecvStream

func (cargoInfo *CargoInfo) RecvStream(fileName string, fileBuffer []byte)

func (*CargoInfo) Send

func (cargoInfo *CargoInfo) Send(fileName string)

fileName - absolute of relative path of the file

func (*CargoInfo) SendStream

func (cargoInfo *CargoInfo) SendStream(fileName string, fileBuffer []byte)

func (*CargoInfo) Write

func (cargo *CargoInfo) Write(fileName string, content string)

Jump to

Keyboard shortcuts

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