bind

package
v0.0.0-...-7c4ed6d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package bind contains the global binding switch and its methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirServer

func DirServer(cc upspin.Config, e upspin.Endpoint) (upspin.DirServer, error)

DirServer returns a DirServer interface bound to the endpoint.

func DirServerFor

func DirServerFor(cc upspin.Config, userName upspin.UserName) (upspin.DirServer, error)

DirServer returns a DirServer interface bound to the endpoint that serves the given user. If the name is empty, it returns the directory endpoint in the config.

func KeyServer

func KeyServer(cc upspin.Config, e upspin.Endpoint) (upspin.KeyServer, error)

KeyServer returns a KeyServer interface bound to the endpoint.

func NoCache

func NoCache()

NoCache supresses the caching of dial results. This was added for debugging.

func RegisterDirServer

func RegisterDirServer(transport upspin.Transport, dir upspin.DirServer) error

RegisterDirServer registers a DirServer interface for the transport. There must be no previous registration.

func RegisterKeyServer

func RegisterKeyServer(transport upspin.Transport, key upspin.KeyServer) error

RegisterKeyServer registers a KeyServer interface for the transport. There must be no previous registration.

func RegisterStoreServer

func RegisterStoreServer(transport upspin.Transport, store upspin.StoreServer) error

RegisterStoreServer registers a StoreServer interface for the transport. There must be no previous registration.

func StoreServer

func StoreServer(cc upspin.Config, e upspin.Endpoint) (upspin.StoreServer, error)

StoreServer returns a StoreServer interface bound to the endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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