vars

package
v0.0.0-...-b598ae0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ADDRESS_BOOK_FILE = "addressbook.dat"
View Source
const BOOTSTRAP_FILE = "bootstrap.dat"
View Source
const CONCURRENT_SESSION_REQUEST = 10
View Source
const DELIMITER_ADDR = ";;"
View Source
const DHT_PEER_KEY_TYPE = "dPeer"
View Source
const DHT_PUBLISHER_KEY_TYPE = "publisher"
View Source
const DHT_SESSIONS_KEY_TYPE = "sessions"
View Source
const EXPIRE_TIME_CONTACT = 10800 //3 hours
View Source
const GET_SESSION_REQ = "/decentralizer/sessions/1.0.0/get"
View Source
const MAX_BOOTSTRAP_SHARE = 80
View Source
const MAX_CONTACTS = 1000
View Source
const MAX_DISCOVERED_PEERS = 30
View Source
const MAX_IDLE_TIME = 5 * time.Minute //Ignored in daemon mode
View Source
const MAX_IGNORE = 4096 //If a peer isn't using our protocol. max ignore
View Source
const MAX_SESSIONS = 1000
View Source
const MAX_SESSION_SEARCHES = 10
View Source
const MAX_SIZE = int64(10 * datasize.MB)
View Source
const MAX_UNMARSHAL_CACHE = 500 //If a peer isn't using our protocol. max ignore
View Source
const MESSAGE_DEADLINE = time.Minute * 10
View Source
const NUM_MATCHMAKING_SLOTS = int(100)
View Source
const PUBLISHER_DEFINITION_FILE = "publisherDefinition.dat"
View Source
const SEND_DIRECT_MESSAGE = "/decentralizer/dm/1.0.0/sent"
View Source
const SESSIONS_FILE = "sessions.dat"

Variables

View Source
var DEFAULT_PORT = 4001
View Source
var DIFF_DIFFERENCE_ACCEPTANCE = 1 * time.Minute
View Source
var EXPIRE_TIME_SESSION = 30 * time.Minute
View Source
var FILE_EXPIRE = time.Hour * 1
View Source
var MIN_CONNECTED_PEERS = 2 //40

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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