bridge

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MethodDesc

func MethodDesc(desc rpc.InterfaceDesc, name string) rpc.MethodDesc

func SeekAndSetBlessings

func SeekAndSetBlessings(ctx *context.T, oauthProvider string, oauthToken string) error

SeekAndSetBlessings exchanges an OAuth token for blessings from the dev.v.io server. Currently, oauthProvider must be set to "google".

Types

type Bridge

type Bridge struct {
	Ctx      *context.T
	Shutdown v23.Shutdown
	Srv      rpc.Server
	Disp     rpc.Dispatcher
	Cleanup  func()
}

Bridge object, representing an in-process Syncbase singleton.

func NewBridge

func NewBridge(ctx *context.T, disp rpc.Dispatcher) *Bridge

func (*Bridge) GetCollection

func (b *Bridge) GetCollection(ctx *context.T, call rpc.ServerCall, name string) (wire.CollectionServerStubMethods, error)

func (*Bridge) GetDb

func (b *Bridge) GetDb(ctx *context.T, call rpc.ServerCall, name string) (wire.DatabaseServerStubMethods, error)

func (*Bridge) GetGlobber

func (b *Bridge) GetGlobber(ctx *context.T, call rpc.ServerCall, name string) (rpc.ChildrenGlobber, error)

func (*Bridge) GetRow

func (b *Bridge) GetRow(ctx *context.T, call rpc.ServerCall, name string) (wire.RowServerStubMethods, error)

func (*Bridge) GetService

func (b *Bridge) GetService(ctx *context.T, call rpc.ServerCall) (wire.ServiceServerStubMethods, error)

func (*Bridge) NewCtxCall

func (b *Bridge) NewCtxCall(suffix string, method rpc.MethodDesc) (*context.T, rpc.ServerCall)

Directories

Path Synopsis
cgo

Jump to

Keyboard shortcuts

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