internal

package
v0.0.0-...-3dadef2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2016 License: BSD-3-Clause Imports: 12 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 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

func ParseFlags(f *flags.Flags) error

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

func ParseFlagsAndConfigureGlobalLogger(f *flags.Flags) error

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

Jump to

Keyboard shortcuts

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