Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudVMAddresses ¶
CloudVMAddresses returns the private and public IP addresses of the Cloud VM instance it is run from, or nil if run from anywhere else. The returned public address is the address of a 1:1 NAT tunnel to this host.
func ConfigureGlobalLoggerFromFlags ¶
func ConfigureGlobalLoggerFromFlags() error
ConfigureGlobalLoggerFromFlags configures the global logger from command line flags. Should be called immediately after ParseFlags.
func InitCloudVM ¶
func InitCloudVM() (func(), error)
InitCloudVM initializes the CloudVM metadata.
If EnvExpectGoogleComputeEngine is set, this function returns after the initialization is done. Otherwise, the initialization is done asynchronously and future calls to CloudVMPublicAddress() will block until the initialization is complete.
Returns a function to cancel initialization.
func NewAddressChooser ¶
func NewAddressChooser(logger logging.Logger) rpc.AddressChooser
NewAddressChooser prefers the public IP if a process is running on a cloud service provider (such as Google Compute Engine or Amazon EC2), otherwise it keeps all the addresses of all interfaces.
func ParseFlags ¶
ParseFlags parses all registered flags taking into account overrides from other configuration and environment variables. It must be called by the profile and flags.RuntimeFlags() must be passed to the runtime initialization function. The profile can use or modify the flags as it pleases.
func ParseFlagsAndConfigureGlobalLogger ¶
ParseFlagsAndConfigurGlobalLogger calls ParseFlags and then ConfigureGlobalLoggerFromFlags.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package cloudvm provides functions to test whether the current process is running on Google Compute Engine or Amazon Web Services, and to extract settings from this environment.
|
Package cloudvm provides functions to test whether the current process is running on Google Compute Engine or Amazon Web Services, and to extract settings from this environment. |
lib
|
|
bqueue
Package bqueue implements several kinds of buffer queues, as a N-writer, 1-reader queue.
|
Package bqueue implements several kinds of buffer queues, as a N-writer, 1-reader queue. |
bqueue/drrqueue
Package drrqueue implements a deficit round-robin buffer queue.
|
Package drrqueue implements a deficit round-robin buffer queue. |
dependency
Package dependency keeps track of a dependency graph.
|
Package dependency keeps track of a dependency graph. |
deque
Package deque implements a deque using a circular array.
|
Package deque implements a deque using a circular array. |
iobuf
Package iobuf performs explicit memory management for data buffers used to perform network IO.
|
Package iobuf performs explicit memory management for data buffers used to perform network IO. |
pcqueue
A producer/consumer queue is a concurrent bounded buffer supporting multiple concurrent producers and consumers, with timeouts.
|
A producer/consumer queue is a concurrent bounded buffer supporting multiple concurrent producers and consumers, with timeouts. |
sync
Package sync provides synchronization primitives.
|
Package sync provides synchronization primitives. |
upcqueue
Package upcqueue implements an unbounded producer/consumer queue.
|
Package upcqueue implements an unbounded producer/consumer queue. |
Package naming provides an implementation of the interfaces in v.io/v23/naming.
|
Package naming provides an implementation of the interfaces in v.io/v23/naming. |
benchmark
package benchmark provides simple tools to measure the performance of the IPC system.
|
package benchmark provides simple tools to measure the performance of the IPC system. |
benchmark/benchmark
Command benchmark runs the benchmark client.
|
Command benchmark runs the benchmark client. |
benchmark/benchmarkd
Command benchmarkd runs the benchmark server.
|
Command benchmarkd runs the benchmark server. |
stress/mtstress
Usage:
|
Usage: |
stress/stress
Command stress is a tool to stress/load test RPC by issuing randomly generated requests.
|
Command stress is a tool to stress/load test RPC by issuing randomly generated requests. |
stress/stressd
Command stressd runs the stress-test server.
|
Command stressd runs the stress-test server. |
test
package test contains test for rpc code that do not rely on unexposed rpc declarations.
|
package test contains test for rpc code that do not rely on unexposed rpc declarations. |
testing
|
|
Package vtrace implements the Trace and Span interfaces in v.io/v23/vtrace.
|
Package vtrace implements the Trace and Span interfaces in v.io/v23/vtrace. |