servermux

package
v0.0.0-...-70e5bc8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package servermux provides in-process KeyServer, StoreServer, and DirServer implementations that mux across multiple concrete instances/implementations. They are muxed by the NetAddr in the Endpoint, which can be an arbitrary string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mux

type Mux struct {
	// contains filtered or unexported fields
}

Mux stores a mapping of upspin.Dialers keyed by their Endpoints' NetAddr fields.

func NewDir

func NewDir() (*Mux, upspin.DirServer)

NewDir creates a new muxing DirServer and returns the corresponding Mux and DirServer instances.

func NewKey

func NewKey() (*Mux, upspin.KeyServer)

NewKey creates a new muxing KeyServer and returns the corresponding Mux and KeyServer instances.

func NewStore

func NewStore() (*Mux, upspin.StoreServer)

NewStore creates a new muxing StoreServer and returns the corresponding Mux and StoreServer instances.

func (*Mux) Register

func (mux *Mux) Register(ep upspin.Endpoint, d upspin.Dialer)

Register adds the given dialer to the Mux's mapping keyed by the given Endpoint's NetAddr.

Jump to

Keyboard shortcuts

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