internal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

README

This directory and all of its subdirectories contain an implementation of the
public APIs defined in v23.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudVMAddresses

func CloudVMAddresses() []net.Addr

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 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 ParseFlagsIncV23Env

func ParseFlagsIncV23Env(f *flags.Flags) error

ParseFlagsIncV23Env parses all registered flags taking into account overrides from other configuration and environment variables such as V23_EXEC_CONFIG It must be called by the factory and flags.RuntimeFlags() must be passed to the runtime initialization function.

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.
rpc
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: mtstress [flags] <command> The mtstress commands are: mount Measure latency of the Mount RPC at a fixed request rate resolve Measure latency of the Resolve RPC at a fixed request rate help Display help for commands or topics The global flags are: -duration=10s Duration for sending test traffic and measuring latency -rate=1 Rate, in RPCs per second, to send to the test server -reauthenticate=false If true, establish a new authenticated connection for each RPC, simulating load from a distinct process -alsologtostderr=true log to standard error as well as files -log_backtrace_at=:0 when logging hits line file:N, emit a stack trace -log_dir= if non-empty, write log files to this directory -logtostderr=false log to standard error instead of files -max_stack_buf_size=4292608 max size in bytes of the buffer to use for logging stack traces -metadata=<just specify -metadata to activate> Displays metadata for the program and exits.
Usage: mtstress [flags] <command> The mtstress commands are: mount Measure latency of the Mount RPC at a fixed request rate resolve Measure latency of the Resolve RPC at a fixed request rate help Display help for commands or topics The global flags are: -duration=10s Duration for sending test traffic and measuring latency -rate=1 Rate, in RPCs per second, to send to the test server -reauthenticate=false If true, establish a new authenticated connection for each RPC, simulating load from a distinct process -alsologtostderr=true log to standard error as well as files -log_backtrace_at=:0 when logging hits line file:N, emit a stack trace -log_dir= if non-empty, write log files to this directory -logtostderr=false log to standard error instead of files -max_stack_buf_size=4292608 max size in bytes of the buffer to use for logging stack traces -metadata=<just specify -metadata to activate> Displays metadata for the program and exits.
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.

Jump to

Keyboard shortcuts

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