bind

package
v0.0.0-...-8fa1bb7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 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 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