Documentation
¶
Overview ¶
Package alias implements the muxrpc handlers for alias needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements the muxrpc methods for alias registration and recvocation
func New ¶
func New(log kitlog.Logger, self refs.FeedRef, aliasesDB roomdb.AliasesService, netInfo network.ServerEndpointDetails) Handler
New returns a fresh alias muxrpc handler
func (Handler) Register ¶
Register is an async muxrpc method handler for registering aliases. It receives two string arguments over muxrpc (alias and signature), checks the signature confirmation is correct (for this room and signed by the key of theconnection) If it is valid, it registers the alias on the roomdb and returns true. If not it returns an error.
Click to show internal directories.
Click to hide internal directories.