// Add function to mapping for route use.
Add function to mapping for route use.
// Add function to mapping for route use .
func (node *Node) Handle(title []byte, handle func(*local.Client, *local.Message) []byte) *Node {
	node.mutex.Lock()
	defer node.mutex.Unlock()
	node.hroutes[encoding.Base64Encode(title)] = handle
	return node
}
func ( node * Node ) Handle ( title [ ] byte , handle func ( * local . Client , * local . Message ) [ ] byte ) * Node { node . mutex . Lock ( ) defer node . mutex . Unlock ( ) node . hroutes [ encoding . Base64Encode ( title ) ] = handle return node }
Add function to mapping for route use.
Add function to mapping for route use .