| "v.io/core/veyron2/context" |
| "v.io/core/veyron/lib/appcycle" |
| "v.io/core/veyron/profiles/internal" |
| _ "v.io/core/veyron/runtimes/google/ipc/protocols/tcp" |
| _ "v.io/core/veyron/runtimes/google/ipc/protocols/ws" |
| _ "v.io/core/veyron/runtimes/google/ipc/protocols/wsh" |
| grt "v.io/core/veyron/runtimes/google/rt" |
| veyron2.RegisterProfileInit(Init) |
| func Init(ctx *context.T) (veyron2.RuntimeX, *context.T, veyron2.Shutdown, error) { |
| runtime, ctx, shutdown, err := grt.Init(ctx, |
| Addrs: ipc.ListenAddrs{{"tcp", "127.0.0.1:0"}}, |
| AddressChooser: internal.IPAddressChooser, |
| return nil, nil, nil, err |
| runtime.GetLogger(ctx).VI(1).Infof("Initializing generic profile.") |
| profileShutdown := func() { |
| return runtime, ctx, profileShutdown, nil |