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 ¶
NewDir creates a new muxing DirServer and returns the corresponding Mux and DirServer instances.
func NewKey ¶
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.
Click to show internal directories.
Click to hide internal directories.