common

package
v0.0.0-...-ba3c015 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AGENT_CLIENT = "client"
View Source
const AGENT_SERVER = "server"
View Source
const CHUNK_UPLOAD_ENDPOINT = "/upload/:id"
View Source
const FILE_UPLOAD_ENDPOINT = "/file"
View Source
const GET_METHOD = "GET"

Variables

This section is empty.

Functions

func DoRequest

func DoRequest(method, url, agent string, offset int64, body []byte) error

func GetMeServerAdd

func GetMeServerAdd() string

func SendRequest

func SendRequest(buffer []byte, offset int64, sequence int64, fx string, total int64) error

Types

type AppConfig

type AppConfig struct {
	Chunk  Chunk
	Server Server
}

func GetAppConfig

func GetAppConfig() *AppConfig

type Chunk

type Chunk struct {
	Size     int64
	Filename string
}

type Server

type Server struct {
	Addr []string
}

Jump to

Keyboard shortcuts

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