Discover Packages
github.com/Evolution404/simcore
les
vflux
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 9, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
MaxRequestLength = 16
CapacityQueryName = "cq"
CapacityQueryMaxLen = 16
)
View Source
const (
IntNonNegative = iota
IntNegative
IntPlusInf
IntMinusInf
)
type CapacityQueryReply []uint64
CapacityQueryReq is the encoding format of the response to the capacity query
CapacityQueryReq is the encoding format of the capacity query
IntOrInf is the encoding format for arbitrary length signed integers that can also
hold the values of +Inf or -Inf
BigInt returns the value as a big.Int or panics if the value is infinity
Inf returns 1 if the value is +Inf, -1 if it is -Inf, 0 otherwise
Int64 limits the value between MinInt64 and MaxInt64 (even if it is +-Inf) and returns an int64 type
SetBigInt sets the value to the given big.Int
SetInf sets the value to +Inf or -Inf
SetInt64 sets the value to the given int64. Note that MaxInt64 translates to +Inf
while MinInt64 translates to -Inf.
Replies are the replies to a batch of requests
Get decodes the reply to the i-th request in the batch
type Request struct {
Service, Name string
Params []byte
}
Request describes a single vflux request inside a batch. Service and request
type are identified by strings, parameters are RLP encoded.
Requests are a batch of vflux requests
Add encodes and adds a new request to the batch
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.