Jiri Simsa | d7616c9 | 2015-03-24 23:44:30 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Suharsh Sivakumar | 40e52e9 | 2015-05-11 15:37:00 -0700 | [diff] [blame] | 5 | // Package runtime and its subdirectories provide implementations of the |
| 6 | // Vanadium runtime for different runtime environments. |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 7 | // |
Suharsh Sivakumar | 40e52e9 | 2015-05-11 15:37:00 -0700 | [diff] [blame] | 8 | // Each subdirectory of the runtime/factories package is a package that |
| 9 | // implements the v23.RuntimeFactory function. |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 10 | // |
Suharsh Sivakumar | 40e52e9 | 2015-05-11 15:37:00 -0700 | [diff] [blame] | 11 | // runtime/internal has common functionality use in runtime/factories. |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 12 | // |
Suharsh Sivakumar | 40e52e9 | 2015-05-11 15:37:00 -0700 | [diff] [blame] | 13 | // RuntimeFactories register themselves by calling v.io/v23/rt.RegisterRuntimeFactory |
| 14 | // in an init function. Users choose a particular RuntimeFactory implementation |
| 15 | // by importing the appropriate package in their main package. It is an error |
| 16 | // to import more than one RuntimeFactory, and the registration mechanism will |
| 17 | // panic if this is attempted. |
| 18 | // |
| 19 | // The 'roaming' RuntimeFactory adds operating system support for varied network |
Cosmos Nicolaou | 6c6fa11 | 2014-08-19 13:22:33 -0700 | [diff] [blame] | 20 | // configurations and in particular dhcp. It should be used by any application |
Suharsh Sivakumar | 40e52e9 | 2015-05-11 15:37:00 -0700 | [diff] [blame] | 21 | // that may 'roam' or be behind a 1-1 NAT. |
| 22 | // |
| 23 | // The 'static' RuntimeFactory does not provide dhcp support, but is otherwise |
| 24 | // like the 'roaming' RuntimeFactory. |
| 25 | package runtime |